diff options
author | Felix Endres | 2006-04-30 04:03:13 +0200 |
---|---|---|
committer | Felix Endres | 2006-04-30 04:03:13 +0200 |
commit | 95c42e5352375c0bd08f597cad5a01fa29a73c41 (patch) | |
tree | 30c6c94f10ec20826ee21c40415fdc858cb49498 /initrd/initrd-stuff/etc/functions | |
parent | fix for USB/VMware issue, removing unneeded dhcp user specified (diff) | |
download | core-95c42e5352375c0bd08f597cad5a01fa29a73c41.tar.gz core-95c42e5352375c0bd08f597cad5a01fa29a73c41.tar.xz core-95c42e5352375c0bd08f597cad5a01fa29a73c41.zip |
Work on debian, especially udev. Some documentation too.
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@204 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 8 |
1 files changed, 7 insertions, 1 deletions
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 |