Browse Source

fix restart on platforms without a setup_switch()

SVN-Revision: 10846
Travis Kemen 18 years ago
parent
commit
37b0cc9a10
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/base-files/files/etc/init.d/network

+ 2 - 0
package/base-files/files/etc/init.d/network

@@ -20,6 +20,8 @@ start() {
 }
 }
 
 
 restart() {
 restart() {
+	setup_switch() { return 0; }
+	
 	include /lib/network
 	include /lib/network
 	setup_switch
 	setup_switch
 	ifup -a
 	ifup -a