fix restart on platforms without a setup_switch()
authorTravis Kemen <thepeople@openwrt.org>
Tue, 15 Apr 2008 16:29:49 +0000 (16:29 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Tue, 15 Apr 2008 16:29:49 +0000 (16:29 +0000)
SVN-Revision: 10846

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

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