aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-04-15 16:29:49 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-04-15 16:29:49 +0000
commita7ce99aa6bef78d472039ab9ace5435d802204d9 (patch)
treef9b0ce9f3372fc5fc9c73cbe3482d36d9a548415 /package/base-files/files/etc
parentdc71c1b1893669f94ac8f659a88154d734c2d353 (diff)
downloadupstream-a7ce99aa6bef78d472039ab9ace5435d802204d9.tar.gz
upstream-a7ce99aa6bef78d472039ab9ace5435d802204d9.tar.bz2
upstream-a7ce99aa6bef78d472039ab9ace5435d802204d9.zip
fix restart on platforms without a setup_switch()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10846 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network
index 6b1f13c2fa..e77db02517 100755
--- a/package/base-files/files/etc/init.d/network
+++ b/package/base-files/files/etc/init.d/network
@@ -20,6 +20,8 @@ start() {
}
restart() {
+ setup_switch() { return 0; }
+
include /lib/network
setup_switch
ifup -a