summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh
blob: 746a768046b7e7b39cb82b5a33c7e36be9283afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
if [[ "$1" == "start" ]]; then
  cp -f /etc/resolv.conf /mnt/chroot/cauldron/etc/
  mount -o bind /proc /mnt/chroot/cauldron/proc
  mount -o bind /dev /mnt/chroot/cauldron/dev
  mount /mnt/chroot/cauldron/dev/pts
  mount -o bind /sys /mnt/chroot/cauldron/sys
fi

if [[ "$1" == "stop" ]]; then
  umount /mnt/chroot/cauldron/proc
  umount /mnt/chroot/cauldron/dev/pts
  umount /mnt/chroot/cauldron/sys
  umount /mnt/chroot/cauldron/dev	
fi