mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 02:39:52 +07:00
arc: remove custom kernel if 7.2.2 is selected
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
9f2485ad00
commit
9e34bc70f3
@ -52,6 +52,8 @@ function addonSelection() {
|
|||||||
arrayExistItem "${ADDON}" "${!ADDONS[@]}" && ACT="on" || ACT="off"
|
arrayExistItem "${ADDON}" "${!ADDONS[@]}" && ACT="on" || ACT="off"
|
||||||
if [[ "${ADDON}" == "amepatch" || "${ADDON}" == "sspatch" || "${ADDON}" == "arcdns" ]] && [ "${ARCPATCH}" == "false" ]; then
|
if [[ "${ADDON}" == "amepatch" || "${ADDON}" == "sspatch" || "${ADDON}" == "arcdns" ]] && [ "${ARCPATCH}" == "false" ]; then
|
||||||
continue
|
continue
|
||||||
|
elif [[ "${ADDON}" == "amepatch" || "${ADDON}" == "sspatch" || "${ADDON}" == "photosfacepatch" || "${ADDON}" == "remotefs" ]] && [ "${NANOVER}" == "2" ]; then
|
||||||
|
continue
|
||||||
elif [ "${ADDON}" == "cpufreqscaling" ] && [ "${CPUFREQ}" == "false" ]; then
|
elif [ "${ADDON}" == "cpufreqscaling" ] && [ "${CPUFREQ}" == "false" ]; then
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
@ -71,14 +73,8 @@ function addonSelection() {
|
|||||||
writeConfigKey "addons.\"${ADDON}\"" "" "${USER_CONFIG_FILE}"
|
writeConfigKey "addons.\"${ADDON}\"" "" "${USER_CONFIG_FILE}"
|
||||||
done
|
done
|
||||||
ADDONSINFO="$(readConfigEntriesArray "addons" "${USER_CONFIG_FILE}")"
|
ADDONSINFO="$(readConfigEntriesArray "addons" "${USER_CONFIG_FILE}")"
|
||||||
if [ "${NANOVER}" == "2" ]; then
|
dialog --backtitle "$(backtitle)" --title "DSM Addons" \
|
||||||
ADDONSINFO+="\n\nWARN: DSM 7.2.2 isn't supported by app-specific Addons!"
|
--msgbox "DSM Addons selected:\n${ADDONSINFO}" 7 50
|
||||||
dialog --backtitle "$(backtitle)" --title "DSM Addons" \
|
|
||||||
--msgbox "DSM Addons selected:\n${ADDONSINFO}" 10 60
|
|
||||||
else
|
|
||||||
dialog --backtitle "$(backtitle)" --title "DSM Addons" \
|
|
||||||
--msgbox "DSM Addons selected:\n${ADDONSINFO}" 7 50
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -1032,7 +1032,7 @@ else
|
|||||||
echo "N \"Add new User\" " >>"${TMP_PATH}/menu"
|
echo "N \"Add new User\" " >>"${TMP_PATH}/menu"
|
||||||
echo "D \"StaticIP \" " >>"${TMP_PATH}/menu"
|
echo "D \"StaticIP \" " >>"${TMP_PATH}/menu"
|
||||||
echo "J \"Reset DSM Network Config \" " >>"${TMP_PATH}/menu"
|
echo "J \"Reset DSM Network Config \" " >>"${TMP_PATH}/menu"
|
||||||
if [ "${PLATFORM}" == "epyc7002" ]; then
|
if [ "${PLATFORM}" == "epyc7002" ] && [ "${NANOVER}" == "1"]; then
|
||||||
echo "K \"Kernel: \Z4${KERNEL}\Zn \" " >>"${TMP_PATH}/menu"
|
echo "K \"Kernel: \Z4${KERNEL}\Zn \" " >>"${TMP_PATH}/menu"
|
||||||
fi
|
fi
|
||||||
if [ "${DT}" == "true" ]; then
|
if [ "${DT}" == "true" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user