summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-06-07 20:03:28 +0000
committerRoy Marples <roy@marples.name>2013-06-07 20:03:28 +0000
commitf127375eee85b4091ce0e6ae4b6797e709b7130d (patch)
treefca0795b95fbba1ff92bdae1a30ece4ec9b8e795 /dhcpcd.c
parent336dd1b83b3cec02226dfb3048e0be895aafbd37 (diff)
downloaddhcpcd-f127375eee85b4091ce0e6ae4b6797e709b7130d.tar.xz
Add a wpa_supplicant hook script.
This script starts wpa_supplicant on a wireless interface if not already running and /etc/wpa_supplicant.conf exists, stops it when the interface departs and sends wpa_supplicant a reconfigure command. If dhcpcd is running in master mode, you can use `dhcpcd -n eth0' it instruct wpa_supplicant to reload its configuration file.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 25e98072..f9d53a7f 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -617,6 +617,7 @@ if_reboot(struct interface *ifp, int argc, char **argv)
int oldopts;
oldopts = ifp->options->options;
+ script_runreason(ifp, "RECONFIGURE");
configure_interface(ifp, argc, argv);
dhcp_reboot_newopts(ifp, oldopts);
dhcp6_reboot(ifp);