wok diff mirror-tools/stuff/usr/share/slitaz-live/INSTALL @ rev 3926

mirror-tools: be fhs compatible
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 19 12:03:31 2009 +0200 (2009-08-19)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mirror-tools/stuff/usr/share/slitaz-live/INSTALL	Wed Aug 19 12:03:31 2009 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +#!/bin/sh
     1.5 +DIR=$(dirname $0)
     1.6 +MOUNTS="/proc /sys /dev/pts /dev/shm"
     1.7 +cp /etc/resolv.conf etc
     1.8 +for i in $MOUNTS; do
     1.9 +  [ -d $i ] && mount --bind $i $DIR/$i
    1.10 +done
    1.11 +#mount --bind /var/tmp tmp
    1.12 +mount --bind /tmp tmp || mount -t tmpfs tmpfs tmp
    1.13 +SHELL=/bin/ash chroot $DIR /bin/ash -
    1.14 +umount tmp
    1.15 +for i in $MOUNTS; do
    1.16 +  umount $DIR/$i
    1.17 +done