|
|
@@ -5,14 +5,7 @@
|
|
|
[ "${ACTION}" = "add" ] || return
|
|
|
|
|
|
. /lib/functions.sh
|
|
|
-
|
|
|
-check_kernel()
|
|
|
-{
|
|
|
- local kernel_current=$(uname -r)
|
|
|
- if [ ${kernel_current//./} -lt "6600" ]; then
|
|
|
- return 1
|
|
|
- fi
|
|
|
-}
|
|
|
+. /lib/functions/system.sh
|
|
|
|
|
|
do_migrate_radio()
|
|
|
{
|
|
|
@@ -40,7 +33,7 @@ check_path()
|
|
|
# Checks if kernel version is less than 6.6.0, if it is and the path is using the new format,
|
|
|
# then path should be migrated to the old format. This would allow users on platforms with two partitions,
|
|
|
# to test 6.1 and 6.6.
|
|
|
- check_kernel || to=${path/soc@0\//soc\/}
|
|
|
+ [ "$(get_linux_version)" -lt "606000" ] && to=${path/soc@0\//soc\/}
|
|
|
|
|
|
[ "$path" = "$to" ] || do_migrate_radio "$config" "$path" "$to"
|
|
|
}
|