Thread: Becoming Root
View Single Post
Posts: 319 | Thanked: 6 times | Joined on Apr 2006
#14
sorry it took a while to post it. Actually forgot until halfway though watching doctor who.

#!/bin/sh -e
trap exit SIGHUP SIGINT SIGTERM
PATH=/bin:/usr/bin:/sbin:/usr/sbin
#MODE=`/usr/sbin/chroot /mnt/initfs cal-tool --get-rd-mode`
#if [ x$MODE = xenabled ]
#then
# echo "Root shell enabled"
/bin/sh
#else
# echo "Enable RD mode if you want to break your device"
#fi
#