diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 11:15:39 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 11:15:39 +0200 |
commit | a323f3adf275954727f32895eea37bfcf0aa9fb7 (patch) | |
tree | 59ee4995c1bb29aa925f83fc1ccea68493ef03fe /main.c | |
parent | 838526ce765052bc1fe6c34cee3811027f519a14 (diff) |
bring all interfaces down on restart
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ #include "netifd.h" #include "ubus.h" #include "config.h" +#include "interface.h" const char *main_path = "."; static char **global_argv; @@ -21,6 +22,7 @@ static struct uloop_timeout restart_timer = { void netifd_restart(void) { + interface_set_down(NULL); uloop_timeout_set(&restart_timer, 1000); } |