diff --git a/ps5-linux-warm-reboot.sh b/ps5-linux-warm-reboot.sh new file mode 100755 index 0000000..8c9d682 --- /dev/null +++ b/ps5-linux-warm-reboot.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e + +CMDLINE=$(cat /boot/efi/cmdline.txt) +VMLINUZ=/boot/efi/bzImage +INITRD=/boot/efi/initrd.img + +kexec -l "$VMLINUZ" --initrd="$INITRD" --append="$CMDLINE" +systemctl kexec -i