1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-11-24 17:16:04 +01:00
cdf2018-principal/raspberrypi/board/robotech/cdfprincipal/rootfs_overlay/etc/extra.d/S40wifi

38 lines
405 B
Plaintext
Raw Normal View History

2018-02-07 17:57:01 +01:00
#!/bin/sh
#
# Connect to Wi-Fi network
#
start() {
printf "Starting Wi-Fi connection: "
# modprobe brcmfmac
modprobe rtl8xxxu
modprobe ar5523
2018-02-07 17:57:01 +01:00
ifup wlan0
echo "OK"
}
stop() {
printf "Stopping Wi-Fi connection: "
ifdown wlan0
echo "OK"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?