View Single Post
Posts: 120 | Thanked: 69 times | Joined on Nov 2007 @ NL
#34
I haven't flashed this kernel. I just use this script when reading in the dark and it works fine.

Code:
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
TTY=`tty`
[ "$TTY" = "not a tty" ] && unset TTY
exec sudo gainroot <<EOF
if [ -z "$TTY" ] ; then exec $0 $* ; else exec <$TTY $0 $* ; fi
EOF
exit $?
fi
chroot /mnt/initfs dsmetest -l 3
exit
 

The Following 4 Users Say Thank You to bousch For This Useful Post: