implement simple device autodetection for wifi drivers
[openwrt/svn-archive/archive.git] / package / base-files / default / etc / init.d / S40network
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 start() {
5 setup_switch() { return 0; }
6
7 include /lib/network
8 setup_switch
9 [ -e /etc/config/wireless ] || \
10 /sbin/wifi detect > /etc/config/wireless
11 /sbin/wifi up
12 }
13