X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fbootscripts%2Fifdown;h=115c4880a8f22a0d9ae0d797de80639a4993618f;hb=f3c8db3027d5dc530e1f30c88e0235975211582e;hp=52a20df3b01e757b0b06647585555cc84a1bdd20;hpb=f9cf3632a64429991fa5e6f556b0c4017e0e9435;p=hvlinux.git diff --git a/stage2/bootscripts/ifdown b/stage2/bootscripts/ifdown index 52a20df..115c488 100755 --- a/stage2/bootscripts/ifdown +++ b/stage2/bootscripts/ifdown @@ -23,6 +23,12 @@ check_brctl() fi } +# First make sure interface is available +if ! ip link show ${DEVICE} ; then + echo "Interface ${DEVICE} not available" + exit ${EXIT_CODE_WARNING} +fi + if [ "x${BOOTPROTO}" = "xdhcp" ]; then # DHCP configuration