From: Mike Baker Date: Tue, 7 Sep 2004 07:48:49 +0000 (+0000) Subject: change DEBUG messages in networking scripts to be more helpful X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ecbdbb661742f5abbb4673787a5e497027246b18;p=librecmc%2Flibrecmc.git change DEBUG messages in networking scripts to be more helpful SVN-Revision: 156 --- diff --git a/obsolete-buildroot/sources/openwrt/root/etc/functions.sh b/obsolete-buildroot/sources/openwrt/root/etc/functions.sh index 6da7df2956..1d341152f3 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 e3a3217ff0..6ef6ae39d1 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"