38 lines
831 B
Makefile
Executable File
38 lines
831 B
Makefile
Executable File
all:
|
|
@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
|
|
|
|
doall:
|
|
make killall ; make mac ; make debugging &
|
|
sleep 10
|
|
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
|
|
|
|
background:
|
|
wpa_supplicant -B -d -i wlan0 -c wpa-supplicant.conf
|
|
|
|
dhclient:
|
|
dhclient wlan0
|
|
# ifconfig wlan0 192.168.151.100/24
|
|
# route add default gw 192.168.151.1
|
|
ifconfig
|
|
ping -c 10 1.1.1.1
|