wtf is this cr*p
This commit is contained in:
parent
d467e9c538
commit
037d978bb8
2
Makefile
2
Makefile
|
@ -13,7 +13,9 @@ install:
|
||||||
install -m0644 setnetrc $(SYSCONFDIR)/setnetrc
|
install -m0644 setnetrc $(SYSCONFDIR)/setnetrc
|
||||||
install -m0755 setnet.sh $(DESTDIR)$(PREFIX)/bin/setnet
|
install -m0755 setnet.sh $(DESTDIR)$(PREFIX)/bin/setnet
|
||||||
install -m0644 setnet.8.gz $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
|
install -m0644 setnet.8.gz $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
|
||||||
|
install -m0644 wpa_setnet.conf $(SYSCONFDIR)/wpa_supplicant/wpa_setnet.conf
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -v $(SYSCONFDIR)/setnetrc
|
rm -v $(SYSCONFDIR)/setnetrc
|
||||||
rm -v $(DESTDIR)$(PREFIX)/bin/setnet
|
rm -v $(DESTDIR)$(PREFIX)/bin/setnet
|
||||||
rm -v $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
|
rm -v $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
|
||||||
|
rm -v $(SYSCONFDIR)/wpa_supplicant/wpa_setnet.conf
|
||||||
|
|
|
@ -985,12 +985,12 @@ wifi_restart_wpa() {
|
||||||
DEVNAME=$1
|
DEVNAME=$1
|
||||||
WPA_FILE=$2
|
WPA_FILE=$2
|
||||||
WPA_PID=$(ps ax | grep wpa_supplicant | grep " -i ${DEVNAME} " | sed -r -e 's/^\ +//g' | cut -d " " -f 1)
|
WPA_PID=$(ps ax | grep wpa_supplicant | grep " -i ${DEVNAME} " | sed -r -e 's/^\ +//g' | cut -d " " -f 1)
|
||||||
WPA_CLI_PID=$(ps ax | grep wpa_cli | grep "-a /etc/wpa_supplicant/wpa_cli.sh " | sed -r -e 's/^\ +//g' | cut -d " " -f 1)
|
WPA_CLI_PID=$(ps ax | grep wpa_cli | grep " -a /etc/wpa_supplicant/wpa_cli.sh " | sed -r -e 's/^\ +//g' | cut -d " " -f 1)
|
||||||
|
|
||||||
if [ -n "wpa_supplicant" ]; then
|
if [ -n "wpa_supplicant" ]; then
|
||||||
log "wifi_restart_wpa" "WPA_PID: ${WPA_PID}"
|
log "wifi_restart_wpa" "WPA_PID: ${WPA_PID}"
|
||||||
kill -9 ${WPA_PID}
|
pkill ${WPA_PID} 2>/dev/null
|
||||||
kill -9 ${WPA_CLI_PID}
|
pkill ${WPA_CLI_PID} 2>/dev/null
|
||||||
else
|
else
|
||||||
log "wifi_restart_wpa" "no wpa_supplicant is running!!!"
|
log "wifi_restart_wpa" "no wpa_supplicant is running!!!"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
ctrl_interface=/var/run/wpa_supplicant
|
ctrl_interface=/var/run/wpa_supplicant
|
||||||
|
ctrl_interface_group=wheel
|
||||||
|
eapol_version=1
|
||||||
|
fast_reauth=1
|
||||||
update_config=1
|
update_config=1
|
||||||
|
ap_scan=1
|
||||||
|
|
Loading…
Reference in New Issue