mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-27 11:08:21 +01:00
use sysvinit
This commit is contained in:
parent
7978bdd326
commit
7f5e6e7c32
15
recipes-diya/diya-overlay/files/boot-to-recovery
Executable file
15
recipes-diya/diya-overlay/files/boot-to-recovery
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||||
|
echo "$0 shall be run as root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
# prepare env for recovery boot
|
||||||
|
cat << EOF > /boot/extraconfig.txt
|
||||||
|
initramfs recovery-${MACHINE}.cpio.gz followkernel
|
||||||
|
EOF
|
||||||
|
echo "Rebooting to recovery mode"
|
||||||
|
reboot
|
Loading…
Reference in New Issue
Block a user