wok 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 78b366b017fc
children 0cf1315d5ed9
files mirror-tools/stuff/slitaz/INSTALL mirror-tools/stuff/usr/share/slitaz-live/INSTALL
line diff
     1.1 --- a/mirror-tools/stuff/slitaz/INSTALL	Wed Aug 19 10:13:45 2009 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,14 +0,0 @@
     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
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mirror-tools/stuff/usr/share/slitaz-live/INSTALL	Wed Aug 19 12:03:31 2009 +0200
     2.3 @@ -0,0 +1,14 @@
     2.4 +#!/bin/sh
     2.5 +DIR=$(dirname $0)
     2.6 +MOUNTS="/proc /sys /dev/pts /dev/shm"
     2.7 +cp /etc/resolv.conf etc
     2.8 +for i in $MOUNTS; do
     2.9 +  [ -d $i ] && mount --bind $i $DIR/$i
    2.10 +done
    2.11 +#mount --bind /var/tmp tmp
    2.12 +mount --bind /tmp tmp || mount -t tmpfs tmpfs tmp
    2.13 +SHELL=/bin/ash chroot $DIR /bin/ash -
    2.14 +umount tmp
    2.15 +for i in $MOUNTS; do
    2.16 +  umount $DIR/$i
    2.17 +done