openwrtv3/package/base-files/files/etc/init.d/network
2010-03-15 14:02:49 +00:00

32 lines
397 B
Bash
Executable file

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=40
STOP=90
boot() {
setup_switch() { return 0; }
include /lib/network
setup_switch
[ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
}
start() {
setup_switch() { return 0; }
include /lib/network
setup_switch
ifup -a
/sbin/wifi up
}
stop() {
ifdown -a
}
restart() {
start
}