summaryrefslogtreecommitdiffstats
path: root/src/wireless
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-06-11 22:33:39 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-11 22:33:58 +0200
commitad711a91917752a887cf99f61e8c23986358671f (patch)
treec9b03b4b9f2c516970fd4e8dcc60afdf554e994e /src/wireless
parentb000b55ddc7fad62cd5a0cc2877648e54ee40268 (diff)
downloadnetctl-ad711a91917752a887cf99f61e8c23986358671f.tar.gz
netctl-ad711a91917752a887cf99f61e8c23986358671f.tar.xz
Move wpa_supplicant PID file to /run
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/wireless')
-rw-r--r--src/wireless4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wireless b/src/wireless
index 22b84a9..8a75d68 100644
--- a/src/wireless
+++ b/src/wireless
@@ -86,7 +86,7 @@ wpa_supplicant_scan_info() {
[[ -z "$INTERFACE" ]] && return 1
essids=$(mktemp --tmpdir essid.XXXXXXXX)
- wpa_supplicant -B -i"$INTERFACE" -Dnl80211,wext -C/var/run/wpa_supplicant -P/var/run/wpa_supplicant.pid || return 1
+ wpa_supplicant -B -i"$INTERFACE" -Dnl80211,wext -C/run/wpa_supplicant -P/run/wpa_supplicant.pid || return 1
wpa_cli -i "$INTERFACE" scan &> /dev/null
sleep 2.5
wpa_cli -i "$INTERFACE" scan_results |
@@ -104,7 +104,7 @@ wpa_supplicant_scan_info() {
# Re-sort by strength as the removal disorders the list
# Cut to the AP/essid fields only
- kill "$(cat /var/run/wpa_supplicant.pid)"
+ kill "$(cat /run/wpa_supplicant.pid)"
# File of 0 length, ie. no ssid's.
if [[ ! -s "$essids" ]]; then