summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLasse Dalegaard <dalegaard@gmail.com>2014-02-25 14:31:31 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-02-27 13:48:49 +0100
commit58e8dd21f999357497bbbe5c914b2d50f0a07e1d (patch)
tree1032caf092ce76f2ad67f202456fae143691dbbe /src/lib
parent7f497011aee03f141a5bd055222ca337383f43a3 (diff)
downloadnetctl-58e8dd21f999357497bbbe5c914b2d50f0a07e1d.tar.gz
netctl-58e8dd21f999357497bbbe5c914b2d50f0a07e1d.tar.xz
Make dhcpcd/dhclient pid files world readable
Needed since 8a41497.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dhcp/dhclient1
-rw-r--r--src/lib/dhcp/dhcpcd1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dhcp/dhclient b/src/lib/dhcp/dhclient
index 42b5f14..5dc637c 100644
--- a/src/lib/dhcp/dhclient
+++ b/src/lib/dhcp/dhclient
@@ -13,6 +13,7 @@ dhclient_start() {
report_error "DHCP IPv$1 lease attempt failed on interface '$Interface'"
return 1
fi
+ chmod 644 "$pidfile"
}
dhclient_stop() {
diff --git a/src/lib/dhcp/dhcpcd b/src/lib/dhcp/dhcpcd
index 42f33ef..c729c08 100644
--- a/src/lib/dhcp/dhcpcd
+++ b/src/lib/dhcp/dhcpcd
@@ -14,6 +14,7 @@ dhcpcd_start() {
report_error "DHCP IP lease attempt failed on interface '$Interface'"
return 1
fi
+ chmod 644 "/run/dhcpcd-$Interface.pid"
}
dhcpcd_stop() {