mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
sysupgrade: Migrate WiFi settings only if the system has WiFi.
This commit is contained in:
parent
b2b6c19e74
commit
0543036ebd
1 changed files with 4 additions and 0 deletions
|
|
@ -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" \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue