From: WANG Chao Date: Thu, 18 Oct 2012 08:43:28 +0000 (+0800) Subject: 40network/ifup.sh: do_static() and do_ipv6auto return 0 if no errors. X-Git-Tag: 025~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bf25df6408af65a95318b967b6ca64ead643f0e;p=thirdparty%2Fdracut.git 40network/ifup.sh: do_static() and do_ipv6auto return 0 if no errors. Commit a0be1ed removes some lines from do_static() and do_ipv6auto(). When $hostname is empty, do_static() and do_ipv6auto() will return 1 and fails to run setup_net at the last of ifup.sh Signed-off-by: WANG Chao --- diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh index 95289c974..db233de7b 100755 --- a/modules.d/40network/ifup.sh +++ b/modules.d/40network/ifup.sh @@ -88,6 +88,8 @@ do_ipv6auto() { wait_for_if_up $netif [ -n "$hostname" ] && echo "echo $hostname > /proc/sys/kernel/hostname" > /tmp/net.$netif.hostname + + return 0 } # Handle static ip configuration @@ -108,6 +110,8 @@ do_static() { [ -n "$gw" ] && echo ip route add default via $gw dev $netif > /tmp/net.$netif.gw [ -n "$hostname" ] && echo "echo $hostname > /proc/sys/kernel/hostname" > /tmp/net.$netif.hostname + + return 0 } # loopback is always handled the same way