network/ifup.sh: save return value of ifup

(cherry picked from commit b4006781e8)
master
Harald Hoyer 2015-08-25 11:20:30 +02:00
parent 3632be079b
commit 744c65939b
1 changed files with 2 additions and 1 deletions

View File

@ -373,6 +373,7 @@ for p in $(getargs ip=); do
do_static ;;
esac
done
ret=$?

> /tmp/net.${netif}.up

@ -380,7 +381,7 @@ for p in $(getargs ip=); do
dhcp|on|any|dhcp6)
;;
*)
if [ $? -eq 0 ]; then
if [ $ret -eq 0 ]; then
setup_net $netif
source_hook initqueue/online $netif
if [ -z "$manualup" ]; then