cleanup
[cmdllinux.git] / scripts / _reinit
blob9cb6ab42798c30eaed990a8e7f3909aa75d7a759
1 #! /bin/sh
3 #'exec chroot . /bin/sh > dev/console < dev/console 2>&1'
4 #SHPARAM=""
5 #/var/lib/chmntp
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