change DEBUG messages in networking scripts to be more helpful
authorMike Baker <mbm@openwrt.org>
Tue, 7 Sep 2004 07:48:49 +0000 (07:48 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 7 Sep 2004 07:48:49 +0000 (07:48 +0000)
SVN-Revision: 156

obsolete-buildroot/sources/openwrt/root/etc/functions.sh
obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides

index 6da7df2956085d8220979fcfdbda4e0384e521cb..1d341152f38ef013947bfe859788e3ec24c05a99 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; }
 )
index e3a3217ff0331f3f1fb721d628c4ddba715f5e6f..6ef6ae39d174b97843c7e8a1089bd2ec5302d5f5 100644 (file)
@@ -49,7 +49,7 @@ NVRAM_lan_proto="static"
 
 # failsafe if reset is held
 [ "$FAILSAFE" = "true" ] && {
-  echo "### FAILSAFE MODE ####"
+  echo "### YOU ARE IN FAILSAFE MODE ####"
   NVRAM_lan_ifname="br0"
   NVRAM_lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
   NVRAM_lan_ipaddr="192.168.1.1"