From 857874b2d4f92b800ecc12a5e52adeaf3855b101 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 12 Jul 2012 23:48:29 +0200 Subject: [PATCH] do not recreate or restart external devices on settings changes, apply them at runtime --- device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.c b/device.c index bc5bc46..0788757 100644 --- a/device.c +++ b/device.c @@ -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: -- 2.30.2