summaryrefslogtreecommitdiff
path: root/obsolete-buildroot
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-09-07 07:48:49 +0000
committerMike Baker <mbm@openwrt.org>2004-09-07 07:48:49 +0000
commitecbdbb661742f5abbb4673787a5e497027246b18 (patch)
treeaf10b98789363a4cecbe06873916f109ed84263d /obsolete-buildroot
parentfbdcc3427512747af7e14b3f855580100e84d954 (diff)
downloadmtk-20170518-ecbdbb661742f5abbb4673787a5e497027246b18.zip
mtk-20170518-ecbdbb661742f5abbb4673787a5e497027246b18.tar.gz
mtk-20170518-ecbdbb661742f5abbb4673787a5e497027246b18.tar.bz2
change DEBUG messages in networking scripts to be more helpful
SVN-Revision: 156
Diffstat (limited to 'obsolete-buildroot')
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/functions.sh1
-rw-r--r--obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides2
2 files changed, 2 insertions, 1 deletions
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/functions.sh b/obsolete-buildroot/sources/openwrt/root/etc/functions.sh
index 6da7df2..1d34115 100755
--- a/obsolete-buildroot/sources/openwrt/root/etc/functions.sh
+++ b/obsolete-buildroot/sources/openwrt/root/etc/functions.sh
@@ -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; }
)
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides b/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides
index e3a3217..6ef6ae3 100644
--- a/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides
+++ b/obsolete-buildroot/sources/openwrt/root/etc/nvram.overrides
@@ -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"