forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipq807x: set compat version for ifname change
Now that interface names are set per physical markings, sysupgrading while preserving config would cause devices that are not accessible over network so make sure to increase the compat version to prevent sysupgrade with config preservation. Signed-off-by: Robert Marko <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
target/linux/ipq807x/base-files/etc/board.d/05_compat-version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright (C) 2022 OpenWrt.org | ||
# | ||
|
||
. /lib/functions.sh | ||
. /lib/functions/uci-defaults.sh | ||
|
||
board_config_update | ||
|
||
case "$(board_name)" in | ||
*) | ||
ucidef_set_compat_version "1.1" | ||
;; | ||
esac | ||
|
||
board_config_flush | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters