From 0543036ebd07e18877cb763b85fcf0b1a7b31c04 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson Date: Tue, 25 Feb 2020 14:55:46 +0100 Subject: [PATCH] sysupgrade: Migrate WiFi settings only if the system has WiFi. --- wifimngr/files/214-uci-wireless | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wifimngr/files/214-uci-wireless b/wifimngr/files/214-uci-wireless index 720373c5a..3de27f626 100644 --- a/wifimngr/files/214-uci-wireless +++ b/wifimngr/files/214-uci-wireless @@ -16,6 +16,10 @@ fi [ -d "/lib/config/snapshots/first_boot/uci" ] || exit 0 +# Does this system has WiFi? +hasWifi=$(chroot "${2}" db -q get hw.board.hasWifi) +[ "$hasWifi" = "1" ] || exit 0 + # Read the very first verion of the wireless settings. chroot "${2}" uci -c "/lib/config/snapshots/first_boot/uci" \