summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-11 11:15:39 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-11 11:15:39 +0200
commita323f3adf275954727f32895eea37bfcf0aa9fb7 (patch)
tree59ee4995c1bb29aa925f83fc1ccea68493ef03fe /main.c
parent838526ce765052bc1fe6c34cee3811027f519a14 (diff)
bring all interfaces down on restart
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index da5ae09..7d7bfcb 100644
--- a/main.c
+++ b/main.c
@@ -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);
}