Diff for /elwix/Attic/install2dev.sh between versions 1.1.2.1 and 1.2

version 1.1.2.1, 2011/07/21 14:06:05 version 1.2, 2011/10/18 09:02:05
Line 18  fi Line 18  fi
   
 if [ "${USER}" != "root" ]; then  if [ "${USER}" != "root" ]; then
         echo          echo
        echo "ELWIX project is not configured - FS must build under root !?!"        echo "ELWIX project is not configured - install must build under root !?!"
         echo          echo
         exit 1          exit 1
 fi  fi
Line 78  enablejfs() Line 78  enablejfs()
 boot2dev()  boot2dev()
 {  {
         echo -n "+++ Installboot to device $1 ... "          echo -n "+++ Installboot to device $1 ... "
        if disklabel -B $1; then        if disklabel -B -b ${WORLD}/boot/boot -m ${TARGET} ${1}; then
                 echo "OK"                  echo "OK"
         else          else
                 echo "Failed!"                  echo "Failed!"
Line 107  if [ -z $1 ]; then Line 107  if [ -z $1 ]; then
         echo " If you wish, may apply secondary optional file name argument for other firmware"          echo " If you wish, may apply secondary optional file name argument for other firmware"
         echo          echo
         exit 2          exit 2
 fi  
   
 if [ ! -r $2 ]; then  
         echo  
         echo "Error:: '$2' ELWIX OS file not found!"  
         echo  
         exit 2  
 else  else
         DEV=$(echo $1 | awk '{           DEV=$(echo $1 | awk '{ 
                 if (!($1 ~ /^\//))                  if (!($1 ~ /^\//))
Line 125  else Line 118  else
                 echo "Wrong device $DEV !!!"                  echo "Wrong device $DEV !!!"
                 exit 1                  exit 1
         fi          fi
   fi
   
   if [ ! -r ${2:-"${REL}/${OS}"} ]; then
           echo
           echo "Error:: '$2' ELWIX OS readable file not found!"
           echo
           exit 2
 fi  fi
   
 initdev $DEV  initdev $DEV

Removed from v.1.1.2.1  
changed lines
  Added in v.1.2


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