slitaz-modular rev 124

local-mirror: Make sure it uses $SLITAZ_DIR/$version/packages path instead of $PKGDIR path for mirror. This is so i can rebuild iso with new packages when rebuilding from scratch.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jul 11 11:29:33 2011 +0000 (2011-07-11)
parents 828711dd2cc6
children 7fc45fb87d9a
files initramfs/usr/bin/local-mirror
line diff
     1.1 --- a/initramfs/usr/bin/local-mirror	Mon Jul 11 11:27:15 2011 +0000
     1.2 +++ b/initramfs/usr/bin/local-mirror	Mon Jul 11 11:29:33 2011 +0000
     1.3 @@ -163,7 +163,7 @@
     1.4  			#	make install
     1.5  			#	cd $pwd
     1.6  			#fi
     1.7 -			echo "$PKGDIR" > $LOCALSTATE/mirror
     1.8 +			echo "$SLITAZ_DIR/$version/packages" > $LOCALSTATE/mirror
     1.9  			[ -d $LOCALSTATE/undigest/incoming ] || mkdir -p $LOCALSTATE/undigest/incoming
    1.10  			[ -f $LOCALSTATE/undigest/incoming/mirror ] || echo "$INCOMING" > $LOCALSTATE/undigest/incoming/mirror
    1.11  			echo "incoming" > $LOCALSTATE/priority
    1.12 @@ -372,7 +372,9 @@
    1.13  				echo "dhcp-option=option:router,$ROUTER_IP" >> /etc/dnsmasq.conf
    1.14  			fi
    1.15  		fi
    1.16 -		echo "$PKGDIR" > $LOCALSTATE/mirror
    1.17 +		if [ -d "$SLITAZ_DIR/$version/packages" ]; then
    1.18 +			echo "$SLITAZ_DIR/$version/packages" > $LOCALSTATE/mirror
    1.19 +		fi
    1.20  		if [ "$COMMAND" = "tank-only" ]; then
    1.21  			[ -f $VHOST_TANK_FILE ] && ln -sf $VHOST_TANK_FILE /etc/lighttpd/vhosts.conf
    1.22  		elif [ "$COMMAND" = "mirror-only" ]; then