move platform specific base-files into target/linux/<targetname>
[openwrt/openwrt.git] / package / base-files / default / etc / init.d / network
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=40
5 start() {
6 setup_switch() { return 0; }
7
8 include /lib/network
9 setup_switch
10 [ -e /etc/config/wireless ] || \
11 /sbin/wifi detect > /etc/config/wireless
12 /sbin/wifi up
13 }
14