Add start and stop argument.
This commit is contained in:
parent
6c9e20617f
commit
ebd343457c
@ -2,13 +2,30 @@
|
|||||||
|
|
||||||
source /etc/archbox.conf
|
source /etc/archbox.conf
|
||||||
|
|
||||||
mount -R /home $CHROOT/home
|
case $1 in
|
||||||
mount -t proc /proc $CHROOT/proc
|
start)
|
||||||
mount -R /tmp $CHROOT/tmp
|
mount -R /home $CHROOT/home
|
||||||
mount -R /sys $CHROOT/sys
|
mount -t proc /proc $CHROOT/proc
|
||||||
mount -R /dev $CHROOT/dev
|
mount -R /tmp $CHROOT/tmp
|
||||||
mount -R /run $CHROOT/run
|
mount -R /sys $CHROOT/sys
|
||||||
mount -R /lib/modules $CHROOT/lib/modules
|
mount -R /dev $CHROOT/dev
|
||||||
mount -R /boot $CHROOT/boot
|
mount -R /run $CHROOT/run
|
||||||
mount -R /var/lib/dbus $CHROOT/var/lib/dbus
|
mount -R /lib/modules $CHROOT/lib/modules
|
||||||
chroot $CHROOT /usr/local/bin/serviced
|
mount -R /boot $CHROOT/boot
|
||||||
|
mount -R /var/lib/dbus $CHROOT/var/lib/dbus
|
||||||
|
chroot $CHROOT /usr/local/bin/serviced >/dev/null 2>&1
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
umount -R $CHROOT/home
|
||||||
|
umount -R $CHROOT/proc
|
||||||
|
umount -R $CHROOT/tmp
|
||||||
|
umount -R $CHROOT/sys
|
||||||
|
umount -R $CHROOT/dev
|
||||||
|
umount -R $CHROOT/run
|
||||||
|
umount -R $CHROOT/lib/modules
|
||||||
|
umount -R $CHROOT/boot
|
||||||
|
umount -R $CHROOT/var/lib/dbus
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user