Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ "$1" == "start" ]; then
  4. mount /home/julia/Pobrane/rootfs.img /chroot/
  5. mount -t proc proc /chroot/proc
  6. mount --bind /dev /chroot/dev
  7. mount -t devpts /dev/pts /chroot/dev/pts
  8. mount -t sysfs /sys /chroot/sys
  9. cp skrypt.sh /chroot/
  10. chroot /chroot
  11. fi;
  12.  
  13. if [ "$1" == "stop" ]; then
  14. exit
  15. umount /chroot/sys
  16. umount /chroot/dev/pts
  17. umount /chroot/dev
  18. umount /chroot/proc
  19. fi;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement