wok-current rev 3929
mirror-tools/mkpkgiso: fix DVD path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 19 17:06:01 2009 +0200 (2009-08-19) |
parents | f61a1715700d |
children | 92e8ac5a4240 |
files | mirror-tools/stuff/usr/bin/mkpkgiso |
line diff
1.1 --- a/mirror-tools/stuff/usr/bin/mkpkgiso Wed Aug 19 10:22:01 2009 +0000 1.2 +++ b/mirror-tools/stuff/usr/bin/mkpkgiso Wed Aug 19 17:06:01 2009 +0200 1.3 @@ -85,7 +85,7 @@ 1.4 1.5 # Handle --auto-install case 1.6 if [ "\$DIR" == "/etc/init.d" ]; then 1.7 - DIR=/mnt 1.8 + DIR=/cdrom 1.9 1.10 # Handle loram on hybrid hard disk / usb key case 1.11 if [ ! -d /usr/bin ]; then 1.12 @@ -209,7 +209,7 @@ 1.13 echo "$(echo $SORT_DIR/packages/*/lighttpd-[0-9]*) -7100" >> $SORT_FILE 1.14 echo "$(echo $SORT_DIR/packages/*/pcre-[0-9]*) -7100" >> $SORT_FILE 1.15 cat >>$TEMP_DIR/install.sh<<EOF 1.16 -echo "=> slitaz web site installed in file:///mnt/website" 1.17 +echo "=> slitaz web site installed in file:///\$DIR/website" 1.18 EOF 1.19 fi;; 1.20 esac 1.21 @@ -253,7 +253,7 @@ 1.22 *\ --auto-install\ *) 1.23 echo -n "Enable auto install" 1.24 cat >>$TEMP_DIR/install.sh<<EOF 1.25 -echo "[ -f /mnt/install.sh ] || mount -o ro -t iso9660 LABEL=packages-$PKG_VER /mnt" >> /etc/init.d/local.sh 1.26 +echo "[ -f /\$DIR/install.sh ] || mount -o ro -t iso9660 LABEL=packages-$PKG_VER /\$DIR" >> /etc/init.d/local.sh 1.27 EOF 1.28 sed -i "s/rw root/rw config=LABEL=packages-$PKG_VER,install.sh root/" \ 1.29 $TEMP_DIR/boot/isolinux/*.cfg