summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-06-11 22:58:49 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-11 22:59:01 +0200
commit8c85a77312a46f742eb0a8041876942f6e2c286e (patch)
treea4bf9468bfcf8ac1e90696390b346d0e72f02e68
parentea9e2dd8befbb30a49fc5e55a84d1eba876ea495 (diff)
downloadnetctl-8c85a77312a46f742eb0a8041876942f6e2c286e.tar.gz
netctl-8c85a77312a46f742eb0a8041876942f6e2c286e.tar.xz
More replacing /var/run by /run
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
-rwxr-xr-xcontrib/common.hook2
-rw-r--r--src/connections/ethernet8
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/common.hook b/contrib/common.hook
index 88066cf..9018888 100755
--- a/contrib/common.hook
+++ b/contrib/common.hook
@@ -15,7 +15,7 @@ function RUNDAEMON {
force=1
shift
elif [[ "$1" = "-d" ]]; then
- [[ -e "/var/run/daemons/$2" ]]
+ [[ -e "/run/daemons/$2" ]]
if [ $? -eq 0 ]; then
case "$dep" in
yes) ;;
diff --git a/src/connections/ethernet b/src/connections/ethernet
index c824f18..902b603 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -54,9 +54,9 @@ ethernet_up() {
case "$IP" in
dhcp)
if checkyesno "${DHCLIENT:-no}"; then
- rm -r "/var/run/dhclient-${INTERFACE}.pid" >/dev/null 2>&1
- report_debug ethernet_up dhclient -q -e TIMEOUT="${DHCP_TIMEOUT:-10}" -pf "/var/run/dhclient-$INTERFACE.pid" "$INTERFACE"
- if ! dhclient -q -e TIMEOUT="${DHCP_TIMEOUT:-10}" -pf "/var/run/dhclient-${INTERFACE}.pid" ${DHCLIENT_OPTIONS} "$INTERFACE"; then
+ rm -r "/run/dhclient-${INTERFACE}.pid" >/dev/null 2>&1
+ report_debug ethernet_up dhclient -q -e TIMEOUT="${DHCP_TIMEOUT:-10}" -pf "/run/dhclient-$INTERFACE.pid" "$INTERFACE"
+ if ! dhclient -q -e TIMEOUT="${DHCP_TIMEOUT:-10}" -pf "/run/dhclient-${INTERFACE}.pid" ${DHCLIENT_OPTIONS} "$INTERFACE"; then
report_fail "DHCP IP lease attempt failed."
stop_80211x
return 1
@@ -125,7 +125,7 @@ ethernet_up() {
case "$IP6" in
dhcp*)
if [[ -x /usr/sbin/dhclient ]]; then
- _DHCLIENT_PIDFILE=/var/run/dhclient6-${INTERFACE}.pid
+ _DHCLIENT_PIDFILE=/run/dhclient6-${INTERFACE}.pid
if [[ "$IP6" = "dhcp-noaddr" ]]; then
sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=1
DHCLIENT6_OPTIONS="-S ${DHCLIENT6_OPTIONS}"