Modify the parameters of kexec

This commit is contained in:
Ing 2023-12-25 00:14:48 +08:00
parent 8386787518
commit 1202cee287

View File

@ -254,6 +254,6 @@ else
echo -e "\n\033[1;43m$(TEXT "[This interface will not be operational. Please wait a few minutes.\nFind DSM via http://find.synology.com/ or Synology Assistant and connect.]")\033[0m\n" >"/dev/${T}" 2>/dev/null || true
done
KERNELWAY="$(readConfigKey "kernelway" "${USER_CONFIG_FILE}")"
[ "${KERNELWAY}" = "kexec" ] && kexec -f -e || poweroff
[ "${KERNELWAY}" = "kexec" ] && kexec -i -a -e || poweroff
exit 0
fi