Diff for /elwix/install2img.sh between versions 1.6.2.1 and 1.7

version 1.6.2.1, 2013/07/29 21:04:03 version 1.7, 2013/08/05 13:10:16
Line 129  gencksum() Line 129  gencksum()
   
 ### main()  ### main()
   
if [ ! -r ${REL}/${OS} ]; thenif [ -z "$1" -o ! -r "$1" ]; then
         echo          echo
        echo "Error:: ELWIX OS file not found!"        echo "Error:: ELWIX OS tar file '$1' not found!"
         echo          echo
         exit 2          exit 2
   else
           IMGNAME=$(basename $1 | sed -e "s/.tar.gz//")
           MD5CHK="${REL}/${IMGNAME}.md5"
           SHA1CHK="${REL}/${IMGNAME}.sha1"
           IMG="${REL}/${IMGNAME}.img"
 fi  fi
   
mkdevice $IMG ${1:-"${IMG_SIZE}"}mkdevice $IMG ${2:-"${IMG_SIZE}"}
 initdev $DEV  initdev $DEV
 mountdev $DEV  mountdev $DEV
install2 ${REL}/${OS}install2 $1
 umountdev  umountdev
 #enablejfs $DEV  #enablejfs $DEV
 boot2dev $DEV  boot2dev $DEV
 cleandev $DEV  cleandev $DEV
 gencksum $IMG $MD5CHK $SHA1CHK  gencksum $IMG $MD5CHK $SHA1CHK
   
echo "ELWIX OS image complete."echo "ELWIX OS image $IMGNAME complete."

Removed from v.1.6.2.1  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>