Skip to content

Commit

Permalink
add "Switch way of switching kernel"
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jul 16, 2023
1 parent 08d7279 commit c2ce4ed
Show file tree
Hide file tree
Showing 7 changed files with 535 additions and 519 deletions.
4 changes: 2 additions & 2 deletions files/board/arpl/overlayfs/opt/arpl/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,6 @@ echo -e "\033[1;37m$(TEXT "Booting...")\033[0m"
for T in $(w | grep -v "TTY" | awk -F' ' '{print $2}'); do
echo -e "\n\033[1;43m$(TEXT "[This interface will not be operational. Please use the http://find.synology.com/ find DSM and connect.]")\033[0m\n" >"/dev/${T}" 2>/dev/null || true
done
#poweroff
kexec -f -e
KERNELWAY="$(readConfigKey "kernelway" "${USER_CONFIG_FILE}")"
[ "${KERNELWAY}" = "kexec" ] && kexec -f -e || poweroff
exit 0
1 change: 1 addition & 0 deletions files/board/arpl/overlayfs/opt/arpl/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if [ ! -f "${USER_CONFIG_FILE}" ]; then
writeConfigKey "directboot" "false" "${USER_CONFIG_FILE}"
writeConfigKey "notsetmacs" "false" "${USER_CONFIG_FILE}"
writeConfigKey "bootipwait" "10" "${USER_CONFIG_FILE}"
writeConfigKey "kernelway" "power" "${USER_CONFIG_FILE}"
writeConfigKey "model" "" "${USER_CONFIG_FILE}"
writeConfigKey "productver" "" "${USER_CONFIG_FILE}"
writeConfigKey "buildnum" "" "${USER_CONFIG_FILE}"
Expand Down
Loading

0 comments on commit c2ce4ed

Please sign in to comment.