#!/bin/bash

case "$1" in
    --start)
    mount /dev/sda13  /mnt/chroot_x86
    mount -t proc none /mnt/chroot_x86/proc
    mount -o bind /dev /mnt/chroot_x86/dev
    chroot /mnt/chroot_x86 /bin/bash --login
    ;;

    --stop)
    umount /mnt/chroot_x86/dev 
    umount /mnt/chroot_x86/proc 
    umount /mnt/chroot_x86
    echo "done."
    ;;

    * )
    echo "Usage: vserver-x86 --start | --stop "
    ;;

esac
