From: Michael Prokop Date: Sat, 17 Mar 2007 22:53:40 +0000 (+0100) Subject: update of config_language and config_local_net X-Git-Tag: 0.6.20~1 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=d60f1a28db0335cb0b2509acea8dd2c7cce0054f;hp=12a8b7ae8ddf3f64d8d62f11b78eb757aa1f13bb;ds=sidebyside update of config_language and config_local_net --- diff --git a/autoconfig.functions b/autoconfig.functions index 40ad6b3..1e6798a 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Feb 19 18:59:09 CET 2007 [mika] +# Latest change: Sam Mär 17 23:52:56 CET 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -261,6 +261,7 @@ config_language(){ [[ "$KKEYBOARD" == 'at' ]] && KEYTABLE=de-latin1-nodeadkeys # write keyboard related variables to file for later use + [ -d /etc/sysconfig ] || mkdir /etc/sysconfig echo "KEYTABLE=\"$KEYTABLE\"" > /etc/sysconfig/keyboard echo "XKEYBOARD=\"$XKEYBOARD\"" >> /etc/sysconfig/keyboard echo "KDEKEYBOARD=\"$KDEKEYBOARD\"" >> /etc/sysconfig/keyboard @@ -514,7 +515,11 @@ done # {{{ Bring up loopback interface now config_local_net(){ if [ -z "$INSTALLED" ] ; then - grep -q lo=lo /etc/network/run/ifstate 2>/dev/null || ifup lo + if grep -q 'iface lo inet loopback' /etc/network/interfaces 2>/dev/null ; then + grep -q lo=lo /etc/network/run/ifstate 2>/dev/null || ifup lo + else + ifconfig lo up + fi fi } # }}} diff --git a/debian/changelog b/debian/changelog index 2f5422b..78d61a8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ grml-autoconfig (0.6.20) unstable; urgency=low * Add rsync to depends. + * config_language(): make sure /etc/sysconfig exists + * config_local_net(): check for entry in /etc/network/interfaces + before using ifup, fall back to ifconfig otherwise -- Michael Prokop Sat, 17 Mar 2007 23:48:12 +0100