summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:05:08 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:29 +0200
commit387472ec4f87d2f4516a4205f77d75326f3b9a6f (patch)
treeeabf684a3f3ec8848e1fc3e63d02095e43e573af /src
parent8b9f249f3d7f4c713c406c31ed9190a636544b14 (diff)
downloadnetctl-387472ec4f87d2f4516a4205f77d75326f3b9a6f.tar.gz
netctl-387472ec4f87d2f4516a4205f77d75326f3b9a6f.tar.xz
use STATE_DIR in /usr/bin/netcfg
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src')
-rw-r--r--src/netcfg8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/netcfg b/src/netcfg
index 57d7a74..bd0dc6a 100644
--- a/src/netcfg
+++ b/src/netcfg
@@ -63,10 +63,10 @@ case "$1" in
CHECK="YES";
profile_up $2;;
clean)
- rm /var/run/network/interfaces/* 2> /dev/null
- rm /var/run/network/profiles/* 2> /dev/null
- rm /var/run/network/suspend/* 2> /dev/null
- rm /var/run/network/last_profile 2> /dev/null
+ rm "$STATE_DIR/interfaces"/* 2> /dev/null
+ rm "$STATE_DIR/profiles"/* 2> /dev/null
+ rm "$STATE_DIR/suspend"/* 2> /dev/null
+ rm "$STATE_DIR/last_profile" 2> /dev/null
killall wpa_supplicant 2> /dev/null
killall dhcpcd 2> /dev/null
;;