fix restart on platforms without a setup_switch()
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Apr 2008 16:29:49 +0000 (16:29 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Apr 2008 16:29:49 +0000 (16:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10846 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/init.d/network

index 6b1f13c..e77db02 100755 (executable)
@@ -20,6 +20,8 @@ start() {
 }
 
 restart() {
+       setup_switch() { return 0; }
+       
        include /lib/network
        setup_switch
        ifup -a