summaryrefslogtreecommitdiffstats
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
commit37b0cc9a100b8f8b6761bdbe2b1c4c5aba64f0ad (patch)
treed3fd402594f8fc033ac401871956548becb86e84 /package/base-files/files/etc
parent67fd9d7fba4f966a49012f02622f308b8cb2e7d7 (diff)
downloadmaster-31e0f0ae-37b0cc9a100b8f8b6761bdbe2b1c4c5aba64f0ad.tar.gz
master-31e0f0ae-37b0cc9a100b8f8b6761bdbe2b1c4c5aba64f0ad.tar.bz2
master-31e0f0ae-37b0cc9a100b8f8b6761bdbe2b1c4c5aba64f0ad.zip
fix restart on platforms without a setup_switch()
SVN-Revision: 10846
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