3 #'exec chroot . /bin/sh > dev/console < dev/console 2>&1'
6 chrootinit
=/var
/lib
/chmntp
/sbin
/init-chroot
8 [ -z "$1" ] && echo "Add param!" && exit 1
10 if [ "$1" = "-p" ]; then
11 sed -i "s%SHPARAM=\"\"%SHPARAM=\"-c 'poweroff -f'\"%" $chrootinit
12 elif [ "$1" = "-r" ]; then
13 sed -i "s%SHPARAM=\"\"%SHPARAM=\"-c 'reboot -f'\"%" $chrootinit