change DEBUG messages in networking scripts to be more helpful
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Sep 2004 07:48:49 +0000 (07:48 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Sep 2004 07:48:49 +0000 (07:48 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@156 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

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; }
 )
index e3a3217..6ef6ae3 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"
This page took 0.022184 seconds and 4 git commands to generate.