diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 14:05:08 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-15 04:28:29 +0200 |
commit | 387472ec4f87d2f4516a4205f77d75326f3b9a6f (patch) | |
tree | eabf684a3f3ec8848e1fc3e63d02095e43e573af /src | |
parent | 8b9f249f3d7f4c713c406c31ed9190a636544b14 (diff) | |
download | netctl-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/netcfg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ;; |