tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

"reload" command for dhcpcd



                        Hi tech-net@,

how about this patch? Simply allowing the extra command "reload" to
dhcpcd's rc script seems to let it reload its configuration and rebind.

Ok to commit?

Cheers,
-- 
khorben
commit c647cb7ef1caacbbbbd43761c0491b6580b1d4f9
Author: Pierre Pronchery <khorben%EdgeBSD.org@localhost>
Date:   Sat Apr 5 23:05:22 2014 +0200

    Let dhcpcd be reloaded via the rc script

diff --git a/etc/rc.d/dhcpcd b/etc/rc.d/dhcpcd
index 3eace70..67385bb 100755
--- a/etc/rc.d/dhcpcd
+++ b/etc/rc.d/dhcpcd
@@ -9,6 +9,7 @@ $_rc_subr_loaded . /etc/rc.subr
 name=dhcpcd
 rcvar=$name
 command=/sbin/$name
+extra_commands="reload"
 
 load_rc_config $name
 


Home | Main Index | Thread Index | Old Index