pinebook-notes/wifi/Makefile

47 lines
1008 B
Makefile
Executable File

all:
make killall ; make mac ; make debugging &
sleep 10
make dhclient
NST:
make killall ; make mac ; wpa_supplicant -d -i wlan0 -c NST.conf &
sleep 10
make dhclient
help:
@echo on boot run:
@echo make killall # to kill wpa_supplicant
@echo make mac # to set the hw addr
@echo make debugging # to start wpa
@echo then background that and run
@echo make dhclient
# wpa_supplicant -B -i wlan0 -c wpa-supplicant.conf -D wext
killall:
-killall -9 wpa_supplicant
-killall -9 /sbin/wpa_supplicant
sleep 2
ifconfig wlan0 down
mac:
ifconfig wlan0 hw ether 02:ba:c0:5c:7b:53
nmcli con modify "WIT.COM Public" wifi.cloned-mac-address 02:ba:c0:5c:7b:53
debugging:
wpa_supplicant -d -i wlan0 -c wpa-supplicant.conf
wit-phone:
wpa_supplicant -d -i wlan0 -c wit-phone.conf
background:
wpa_supplicant -B -d -i wlan0 -c wpa-supplicant.conf
dhclient:
-killall -9 dhclient
dhclient wlan0
# ifconfig wlan0 192.168.151.100/24
# route add default gw 192.168.151.1
ifconfig
ping -c 4 1.1.1.1