diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-06 01:51:31 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-06 01:51:38 +0200 |
commit | 37441269fbc27fc9af0562c6a4af50c1d6d353dd (patch) | |
tree | 3ebdd11040e73c780cea3030987911677488d1b8 /config.c | |
parent | 9ce15904743529fc38d1bb2fc78bf559db98fe3b (diff) |
prevent deletion devices that are part of the current configuration
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -329,6 +329,7 @@ config_init_interfaces(const char *name) uci_network = p; config_init = true; + device_reset_config(); config_init_devices(); uci_foreach_element(&p->sections, e) { @@ -343,6 +344,7 @@ config_init_interfaces(const char *name) device_free_unused(NULL); config_init = false; + device_reset_old(); device_init_pending(); interface_start_pending(); } |