From: Mike F. <va...@us...> - 2006-12-08 22:34:11
|
Update of /cvsroot/ltp/ltp/tools/mkrootfs In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29135/tools/mkrootfs Modified Files: mkrootfs Log Message: use = rather than == when testing for equality in portable shell scripts as the latter is not POSIX Index: mkrootfs =================================================================== RCS file: /cvsroot/ltp/ltp/tools/mkrootfs/mkrootfs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mkrootfs 18 Jun 2003 22:20:35 -0000 1.2 --- mkrootfs 8 Dec 2006 22:34:01 -0000 1.3 *************** *** 156,160 **** # create the filesystem, EXT2 file system will be default. ! if [ $FSTYPE == "ext2" ]; then mke2fs -v -m 0 -N 2000 $TWDIR/ramdisk_fs 2>&1 >$TWDIR/crfs.out || \ { --- 156,160 ---- # create the filesystem, EXT2 file system will be default. ! if [ $FSTYPE = "ext2" ]; then mke2fs -v -m 0 -N 2000 $TWDIR/ramdisk_fs 2>&1 >$TWDIR/crfs.out || \ { *************** *** 164,168 **** } else ! [ "$FSTYPE" == "reiserfs" ] && \ { FORCEREI="-f -f"; --- 164,168 ---- } else ! [ "$FSTYPE" = "reiserfs" ] && \ { FORCEREI="-f -f"; *************** *** 308,312 **** # set up scsi or ide devices. ! if [ "$HDDTYPE" == "scsi" ] || [ "$HDDTYPE" == "SCSI" ] then # set up SCSI cdrom drives. --- 308,312 ---- # set up scsi or ide devices. ! if [ "$HDDTYPE" = "scsi" ] || [ "$HDDTYPE" = "SCSI" ] then # set up SCSI cdrom drives. *************** *** 325,329 **** exit 1 } ! elif [ "$HDDTYPE" == "ide" ] || [ "$HDDTYPE" == "IDE" ] ; then # set up IDE cdrom drive. cp -dpR /dev/cdrom $TWDIR/mnt/dev 2>&1 >$TWDIR/crfs.out || \ --- 325,329 ---- exit 1 } ! elif [ "$HDDTYPE" = "ide" ] || [ "$HDDTYPE" = "IDE" ] ; then # set up IDE cdrom drive. cp -dpR /dev/cdrom $TWDIR/mnt/dev 2>&1 >$TWDIR/crfs.out || \ *************** *** 349,353 **** # setting up busybox. ! if [ "$BBLOC" == "NONE" ] then echo "ÏNFO: downloading busybox from www.busybox.net" --- 349,353 ---- # setting up busybox. ! if [ "$BBLOC" = "NONE" ] then echo "ÏNFO: downloading busybox from www.busybox.net" *************** *** 491,495 **** then # creating filesystem on floppy ! if [ $FSTYPE == "ext2" ]; then mke2fs -v -m 0 -N 24 /dev/fd0h1440 2>&1 >$TWDIR/crfs.out || \ { --- 491,495 ---- then # creating filesystem on floppy ! if [ "$FSTYPE" = "ext2" ]; then mke2fs -v -m 0 -N 24 /dev/fd0h1440 2>&1 >$TWDIR/crfs.out || \ { *************** *** 501,505 **** } else ! [ "$FSTYPE" == "reiserfs" ] && \ { FORCEREI="-f -f"; --- 501,505 ---- } else ! [ "$FSTYPE" = "reiserfs" ] && \ { FORCEREI="-f -f"; |