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-wireless/wireless-dbus6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-wireless/wireless-dbus b/src-wireless/wireless-dbus
index 459e2fd..0e219b6 100644
--- a/src-wireless/wireless-dbus
+++ b/src-wireless/wireless-dbus
@@ -53,7 +53,7 @@ def fail(msg=None, report_type="fail"):
if msg:
report(report_type, msg)
try:
- pid = open("/var/run/wpa_supplicant.pid").read()
+ pid = open("/run/wpa_supplicant.pid").read()
except IOError:
pass
else:
@@ -75,7 +75,7 @@ def start(profile, essid):
# subprocess.call(["iwconfig", profile['INTERFACE'], profile['IWCONFIG']])
# Base arguments
- args=["wpa_supplicant", "-Bu", "-P/var/run/wpa_supplicant.pid"]
+ args=["wpa_supplicant", "-Bu", "-P/run/wpa_supplicant.pid"]
try:
args.append(profile['WPA_OPTS'])
@@ -187,7 +187,7 @@ def start(profile, essid):
def stop(profile):
ret = subprocess.call([ETHERNET_IPROUTE, "down", sys.argv[2]])
- os.kill(int(open("/var/run/wpa_supplicant.pid").read()),SIGTERM)
+ os.kill(int(open("/run/wpa_supplicant.pid").read()),SIGTERM)
sys.exit(ret)
if __name__ == "__main__":