Files
meta-diya/recipes-bsp/initramfs/files/reboot-recovery
Dany LE ab8921d052 Major update:
- Switch to Sytemd
- Add development tools: adroid tool, usbgadget support
- Rework on recovery Image
2025-11-26 17:55:25 +01:00

15 lines
277 B
Bash
Executable File

#! /bin/sh
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "$0 shall be run as root"
exit 1
fi
. /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ ! -e /boot/enable-recovery-mode ]; then
touch /boot/enable-recovery-mode
fi
echo "Rebooting to recovery mode"
reboot