diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh')
-rw-r--r-- | zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh b/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh new file mode 100644 index 000000000..746a76804 --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20121230/8de0fa69/attachment.sh @@ -0,0 +1,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
\ No newline at end of file |