1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-20 14:38:20 +02:00
openwrt/package/base-files/files/etc/init.d/network
2008-04-15 16:29:49 +00:00

34 lines
414 B
Bash
Executable File

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