From 95c42e5352375c0bd08f597cad5a01fa29a73c41 Mon Sep 17 00:00:00 2001 From: Felix Endres Date: Sun, 30 Apr 2006 02:03:13 +0000 Subject: Work on debian, especially udev. Some documentation too. git-svn-id: http://svn.openslx.org/svn/openslx/ld4@204 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/etc/functions | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'initrd/initrd-stuff') diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions index b7e7ecce..127b3a4c 100644 --- a/initrd/initrd-stuff/etc/functions +++ b/initrd/initrd-stuff/etc/functions @@ -41,6 +41,8 @@ trigger_device_events () { # produce error message and if $2 is empty run (debug) shell error () { local e_msg="$1" +if [ -z "$DEBUGLEVEL" ]; then DEBUGLEVEL=0 +fi # check if LOGFILE is really writeable if [ -n "${LOGFILE}" ] ; then [ "${LOGFILE}" != "/dev/null" ] && \ @@ -140,7 +142,11 @@ case $ipcfg in ipconfig $ip::$gw:$nm:$if:none ;; ifconfig) - ifconfig $if $ip netmask $nm broadcast $bc + if [ "$ip" = "0.0.0.0" ]; then + ifconfig $if up + else + ifconfig $if $ip netmask $nm broadcast $bc + fi if [ "$gw" != "0.0.0.0" ] ; then route add default gw $gw fi -- cgit v1.2.3-55-g7522