sysupgrade: Migrate WiFi settings only if the system has WiFi.

This commit is contained in:
Ronny Nilsson 2020-02-25 14:55:46 +01:00
parent b2b6c19e74
commit 0543036ebd

View file

@ -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" \