wtf is this cr*p

This commit is contained in:
Aoi Koizumi (古泉 あおい) 2021-08-14 17:47:07 +00:00
parent d467e9c538
commit 037d978bb8
3 changed files with 9 additions and 4 deletions

View File

@ -13,7 +13,9 @@ install:
install -m0644 setnetrc $(SYSCONFDIR)/setnetrc
install -m0755 setnet.sh $(DESTDIR)$(PREFIX)/bin/setnet
install -m0644 setnet.8.gz $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
install -m0644 wpa_setnet.conf $(SYSCONFDIR)/wpa_supplicant/wpa_setnet.conf
uninstall:
rm -v $(SYSCONFDIR)/setnetrc
rm -v $(DESTDIR)$(PREFIX)/bin/setnet
rm -v $(DESTDIR)$(MANDIR)/man8/setnet.8.gz
rm -v $(SYSCONFDIR)/wpa_supplicant/wpa_setnet.conf

View File

@ -985,12 +985,12 @@ wifi_restart_wpa() {
DEVNAME=$1
WPA_FILE=$2
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
log "wifi_restart_wpa" "WPA_PID: ${WPA_PID}"
kill -9 ${WPA_PID}
kill -9 ${WPA_CLI_PID}
pkill ${WPA_PID} 2>/dev/null
pkill ${WPA_CLI_PID} 2>/dev/null
else
log "wifi_restart_wpa" "no wpa_supplicant is running!!!"
fi

View File

@ -1,3 +1,6 @@
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
fast_reauth=1
update_config=1
ap_scan=1