switching root devices confuses people
[openwrt.git] / obsolete-buildroot / sources / openwrt / root / etc / functions.sh
index 6da7df2..1d34115 100755 (executable)
@@ -26,4 +26,5 @@ if_valid () (
     $DEBUG vconfig add $vif $i 2>/dev/null
   }
   ifconfig "$1" >/dev/null 2>&1 || [ "${1%%[0-9]}" = "br" ]
+  [ $? = 0 ] || { echo -e "# $1 ignored: no such interface"; return 1; }
 )
This page took 0.021691 seconds and 4 git commands to generate.