2015-09-21 11:58:17 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# /etc/rc.d/wlan: start/stop wireless interface
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2020-07-19 09:22:49 +00:00
|
|
|
/etc/rc.d/wpa_supplicant start
|
|
|
|
/etc/rc.d/dhcpcd start
|
2015-09-21 11:58:17 +02:00
|
|
|
;;
|
|
|
|
stop)
|
2020-07-19 09:22:49 +00:00
|
|
|
/etc/rc.d/dhcpcd stop
|
|
|
|
/etc/rc.d/wpa_supplicant stop
|
2015-09-21 11:58:17 +02:00
|
|
|
;;
|
|
|
|
restart)
|
2020-07-19 09:22:49 +00:00
|
|
|
/etc/rc.d/wpa_supplicant restart
|
|
|
|
/etc/rc.d/dhcpcd restart
|
2015-09-21 11:58:17 +02:00
|
|
|
;;
|
|
|
|
status)
|
2020-07-19 09:22:49 +00:00
|
|
|
/etc/rc.d/wpa_supplicant status
|
|
|
|
/etc/rc.d/dhcpcd status
|
2015-09-21 11:58:17 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 [start|stop|restart|status]"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|