From: Christian Schmidt Date: Sun, 25 Apr 2010 19:10:32 +0000 (+0200) Subject: Fixed Image build switch. X-Git-Tag: v2.9-beta1~355 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=823c2183c22c3358a9d8d61b71993676f2c1aa5a;hp=cd18d4be699a94949e4e5df351465326b8f6ca43 Fixed Image build switch. --- diff --git a/make.sh b/make.sh index a36a4a86c9..693a818b46 100755 --- a/make.sh +++ b/make.sh @@ -726,7 +726,7 @@ buildpackages() { ipfiremake cdrom ED=$IPFVER # Check if there is a loop device for building in virtual environments - if [ $BUILD_IMAGES && -e /dev/loop/0 ] || [ -e /dev/loop0 ]; then + if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ]); then ipfiremake usb-stick ED=$IPFVER ipfiremake flash-images ED=$IPFVER fi @@ -736,7 +736,7 @@ buildpackages() { ipfirepackages # Check if there is a loop device for building in virtual environments - if [ $BUILD_IMAGES && -e /dev/loop/0 ] || [ -e /dev/loop0 ]; then + if [ $BUILD_IMAGES == 1 ] && ([ -e /dev/loop/0 ] || [ -e /dev/loop0 ]); then cp -f $BASEDIR/packages/linux-xen-*.ipfire $LFS/install/packages/ cp -f $BASEDIR/packages/meta-linux-xen $LFS/install/packages/ ipfiremake xen-image ED=$IPFVER