diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:48:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:48:29 +0200 |
commit | 857874b2d4f92b800ecc12a5e52adeaf3855b101 (patch) | |
tree | 65953338677a67f86254ac9ff8a2cbea8fda9046 | |
parent | c153c9fa422da41fc6acd07dc5336b4abb6b1814 (diff) |
do not recreate or restart external devices on settings changes, apply them at runtime
-rw-r--r-- | device.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -584,6 +584,10 @@ device_create(const char *name, const struct device_type *type, if (odev) { odev->current_config = true; change = device_set_config(odev, type, config); + if (odev->external) { + system_if_apply_settings(odev, &odev->settings); + change = DEV_CONFIG_APPLIED; + } switch (change) { case DEV_CONFIG_RESTART: case DEV_CONFIG_APPLIED: |