mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2025-10-03 16:50:15 +02:00
Remote connection via PPPoE
This commit is contained in:
parent
ad736b1a0e
commit
832306706d
4 changed files with 27 additions and 10 deletions
|
@ -7,15 +7,12 @@ start() {
|
|||
printf "Starting Wi-Fi connection: "
|
||||
# modprobe brcmfmac
|
||||
modprobe r8188eu
|
||||
ip link set wlan0 up
|
||||
wpa_supplicant -D wext -B -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid
|
||||
ifup wlan0
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping Wi-Fi connection: "
|
||||
start-stop-daemon -K -q -p /var/run/wpa_supplicant.pid
|
||||
ifdown wlan0
|
||||
# rmmod brcmfmac
|
||||
rmmod r8188eu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue