# HG changeset patch # User Pascal Bellard # Date 1250694361 -7200 # Node ID 617322eb9d0d50e53f3287629e7b96a600f6b681 # Parent f61a1715700d07f450e198da38414d591c5a0cef mirror-tools/mkpkgiso: fix DVD path diff -r f61a1715700d -r 617322eb9d0d mirror-tools/stuff/usr/bin/mkpkgiso --- a/mirror-tools/stuff/usr/bin/mkpkgiso Wed Aug 19 10:22:01 2009 +0000 +++ b/mirror-tools/stuff/usr/bin/mkpkgiso Wed Aug 19 17:06:01 2009 +0200 @@ -85,7 +85,7 @@ # Handle --auto-install case if [ "\$DIR" == "/etc/init.d" ]; then - DIR=/mnt + DIR=/cdrom # Handle loram on hybrid hard disk / usb key case if [ ! -d /usr/bin ]; then @@ -209,7 +209,7 @@ echo "$(echo $SORT_DIR/packages/*/lighttpd-[0-9]*) -7100" >> $SORT_FILE echo "$(echo $SORT_DIR/packages/*/pcre-[0-9]*) -7100" >> $SORT_FILE cat >>$TEMP_DIR/install.sh< slitaz web site installed in file:///mnt/website" +echo "=> slitaz web site installed in file:///\$DIR/website" EOF fi;; esac @@ -253,7 +253,7 @@ *\ --auto-install\ *) echo -n "Enable auto install" cat >>$TEMP_DIR/install.sh<> /etc/init.d/local.sh +echo "[ -f /\$DIR/install.sh ] || mount -o ro -t iso9660 LABEL=packages-$PKG_VER /\$DIR" >> /etc/init.d/local.sh EOF sed -i "s/rw root/rw config=LABEL=packages-$PKG_VER,install.sh root/" \ $TEMP_DIR/boot/isolinux/*.cfg