summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-07-21 14:02:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-07-21 14:02:53 +0000
commit29a4b712e8658f13bf6f836943ec81d7cbcd3b73 (patch)
tree57b8983b840371a9290d4ead137ab9ea8f457c5f /openwrt/package/base-files/default/sbin
parent26854133f64778924b1f1974487bade7dbce8194 (diff)
downloadmtk-20170518-29a4b712e8658f13bf6f836943ec81d7cbcd3b73.zip
mtk-20170518-29a4b712e8658f13bf6f836943ec81d7cbcd3b73.tar.gz
mtk-20170518-29a4b712e8658f13bf6f836943ec81d7cbcd3b73.tar.bz2
add config file /etc/config/network, add board-specific network.overrides (instead of nvram.overrides)
SVN-Revision: 1519
Diffstat (limited to 'openwrt/package/base-files/default/sbin')
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifdown2
-rwxr-xr-xopenwrt/package/base-files/default/sbin/ifup3
2 files changed, 5 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown
index 6b255cc..950ee12 100755
--- a/openwrt/package/base-files/default/sbin/ifdown
+++ b/openwrt/package/base-files/default/sbin/ifdown
@@ -1,6 +1,8 @@
#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
+. /etc/network.overrides
+[ -e /etc/config/network ] && . /etc/config/network
type=$1
debug "### ifdown $type ###"
if=$(nvram get ${type}_ifname)
diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup
index 5dac3f9..6aa9987 100755
--- a/openwrt/package/base-files/default/sbin/ifup
+++ b/openwrt/package/base-files/default/sbin/ifup
@@ -1,6 +1,9 @@
#!/bin/ash
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
+. /etc/network.overrides
+[ -e /etc/config/network ] && . /etc/config/network
+
type=$1
debug "### ifup $type ###"