summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/dhclient
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcp/dhclient')
-rw-r--r--src/lib/dhcp/dhclient4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcp/dhclient b/src/lib/dhcp/dhclient
index 0970aee..87e9a92 100644
--- a/src/lib/dhcp/dhclient
+++ b/src/lib/dhcp/dhclient
@@ -1,7 +1,7 @@
type dhclient &> /dev/null || return
dhclient_start() {
- local options pidfile="/run/dhclient$1-$Interface.pid"
+ local options pidfile="/run/dhclient-$Interface-$1.pid"
case $1 in
4) options=$DhclientOptions;;
6) options=$DhclientOptions6;;
@@ -15,7 +15,7 @@ dhclient_start() {
}
dhclient_stop() {
- local stop="-x" pidfile="/run/dhclient$1-$Interface.pid"
+ local stop="-x" pidfile="/run/dhclient-$Interface-$1.pid"
if [[ -f $pidfile ]]; then
is_yes "${DHCPReleaseOnStop:-no}" && stop="-r"
do_debug dhclient -$1 -q $stop "$Interface" -pf "$pidfile" > /dev/null