From 9f0c4ad4e681c151bedafff63575e622eedc8a67 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 17 Sep 2007 16:39:42 +0200 Subject: [PATCH] Make sure /dev/shm/resolvconf exists --- debian/changelog | 6 ++++++ grml-autoconfig | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/debian/changelog b/debian/changelog index a4cb92b..a45c1d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-autoconfig (0.7.19) unstable; urgency=low + + * Make sure /dev/shm/resolvconf exists. + + -- Michael Prokop Mon, 17 Sep 2007 16:39:24 +0200 + grml-autoconfig (0.7.18) unstable; urgency=low * config_lvm(): support Debian etch as well diff --git a/grml-autoconfig b/grml-autoconfig index 4bba09c..581c989 100755 --- a/grml-autoconfig +++ b/grml-autoconfig @@ -76,6 +76,15 @@ if [ -z "$INSTALLED" -a -e /live/cow ] ; then fi fi +# make sure /etc/resolv.conf points to /dev/shm/resolvconf +# and /dev/shm/resolvconf exists: +if [ -z "$INSTALLED" ] ; then + if [[ $(readlink /etc/resolv.conf) == /etc/resolvconf/run/resolv.conf ]] && \ + [[ $(readlink /etc/resolvconf/run) == /dev/shm/resolvconf ]] ; then + mkdir /dev/shm/resolvconf + fi +fi + if [ -z "$SPLASH" ] ; then stage=5 rundebugshell -- 2.1.4