2019-01-01 09:37:57 -06:00
|
|
|
all:
|
2019-01-20 05:20:29 -06:00
|
|
|
make killall ; make mac ; make debugging &
|
|
|
|
sleep 10
|
|
|
|
make dhclient
|
|
|
|
|
2019-01-25 00:38:00 -06:00
|
|
|
NST:
|
|
|
|
make killall ; make mac ; wpa_supplicant -d -i wlan0 -c NST.conf &
|
|
|
|
sleep 10
|
|
|
|
make dhclient
|
|
|
|
|
2019-01-20 05:20:29 -06:00
|
|
|
help:
|
2019-01-01 09:37:57 -06:00
|
|
|
@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
|
|
|
|
|
2019-01-01 08:02:33 -06:00
|
|
|
# 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
|
|
|
|
|
2019-01-25 00:38:00 -06:00
|
|
|
wit-phone:
|
|
|
|
wpa_supplicant -d -i wlan0 -c wit-phone.conf
|
|
|
|
|
2019-01-01 08:02:33 -06:00
|
|
|
background:
|
|
|
|
wpa_supplicant -B -d -i wlan0 -c wpa-supplicant.conf
|
|
|
|
|
|
|
|
dhclient:
|
2019-01-18 22:56:43 -06:00
|
|
|
-killall -9 dhclient
|
2019-01-01 08:02:33 -06:00
|
|
|
dhclient wlan0
|
|
|
|
# ifconfig wlan0 192.168.151.100/24
|
|
|
|
# route add default gw 192.168.151.1
|
|
|
|
ifconfig
|
2019-01-18 22:56:43 -06:00
|
|
|
ping -c 4 1.1.1.1
|