diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 21:33:07 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 21:33:07 +0200 |
commit | b000b55ddc7fad62cd5a0cc2877648e54ee40268 (patch) | |
tree | dc5c2dc676204b72b4e39e82c7c9a0cf6208e183 | |
parent | 23bdfd926aedecc606bf451eaf3a562b285add9c (diff) | |
download | netctl-b000b55ddc7fad62cd5a0cc2877648e54ee40268.tar.gz netctl-b000b55ddc7fad62cd5a0cc2877648e54ee40268.tar.xz |
Change STATE_DIR from /var/run to /run
-rw-r--r-- | contrib/bash-completion | 4 | ||||
-rw-r--r-- | contrib/zsh-completion | 4 | ||||
-rw-r--r-- | src/globals | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/contrib/bash-completion b/contrib/bash-completion index 44dd181..02c8147 100644 --- a/contrib/bash-completion +++ b/contrib/bash-completion @@ -2,12 +2,12 @@ _connected_prfls () { - COMPREPLY=( $( compgen -W "$( ls /var/run/network/profiles/ )" -- $cur ) ) + COMPREPLY=( $( compgen -W "$( ls /run/network/profiles/ )" -- $cur ) ) } _connected_intfs () { - COMPREPLY=( $( compgen -W "$( ls /var/run/network/interfaces/)" -- $cur ) ) + COMPREPLY=( $( compgen -W "$( ls /run/network/interfaces/)" -- $cur ) ) } _netcfg () diff --git a/contrib/zsh-completion b/contrib/zsh-completion index 078ccc8..9f3e7dd 100644 --- a/contrib/zsh-completion +++ b/contrib/zsh-completion @@ -22,11 +22,11 @@ all_profiles() { } up_profiles() { - _files -W "/var/run/network/profiles" + _files -W "/run/network/profiles" } up_ifaces() { - _files -W "/var/run/network/interfaces" + _files -W "/run/network/interfaces" } _arguments -C \ diff --git a/src/globals b/src/globals index 2d5cf19..d0adb0b 100644 --- a/src/globals +++ b/src/globals @@ -14,7 +14,7 @@ IFACE_DIR="$PROFILE_DIR/interfaces/" SUBR_DIR="/usr/lib/network/" HOOKS_DIR="${SUBR_DIR}/hooks/" CONN_DIR="${SUBR_DIR}/connections/" -STATE_DIR="/var/run/network/" +STATE_DIR="/run/network/" |