mirror of
https://github.com/ps5-linux/ps5-linux-tools.git
synced 2026-07-16 01:50:37 +00:00
add convenient script to reboot into linux (#2)
This commit is contained in:
10
ps5-linux-warm-reboot.sh
Executable file
10
ps5-linux-warm-reboot.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user