- Switch to Sytemd - Add development tools: adroid tool, usbgadget support - Rework on recovery Image
15 lines
277 B
Bash
Executable File
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 |