X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fbootscripts%2Fifup;h=b8fc5e801cb618f0a663b00351a1867b623ce6b6;hb=f920c7ef750f2163b9e407cc453b192ede2c185a;hp=4224c473b4fa112bf77e12f570fc5f46e738e203;hpb=7f1a3e5d69d0b1d64619604c30243e0070dc09ad;p=hvlinux.git diff --git a/stage2/bootscripts/ifup b/stage2/bootscripts/ifup index 4224c47..b8fc5e8 100755 --- a/stage2/bootscripts/ifup +++ b/stage2/bootscripts/ifup @@ -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 + # Determining if the interface is a bridge: if [ "x${BRIDGE}" = "xyes" ]; then check_brctl