wireless: call an initial cleanup function
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 09:39:51 +0000 (10:39 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 09:39:51 +0000 (10:39 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
scripts/netifd-wireless.sh

index e26cea5a261656d88fc303f1956ec41de520b72d..7ae36955ddd683c9629f28823b749a3b7e3059a7 100644 (file)
@@ -297,6 +297,8 @@ init_wireless_driver() {
        case "$cmd" in
                dump)
                        add_driver() {
+                               eval "drv_$1_cleanup"
+
                                json_init
                                json_add_string name "$1"