Changeset 273 in MondoRescue for branches/2.06/mondo/mondo/restore-scripts/mondo/hack-fstab
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/restore-scripts/mondo/hack-fstab
r30 r273 30 30 size=`echo "$incoming" | cut -d' ' -f4` 31 31 # echo "'$device' '$mountpoint' '$format' '$size'" > /dev/stderr 32 original_fstab_line=` cat $old_fstab | grep " $mountpoint "| grep -v "#" | tr -s ' ' ' '`32 original_fstab_line=`grep " $mountpoint " $old_fstab | grep -v "#" | tr -s ' ' ' '` 33 33 # echo "original_fstab_line = $original_fstab_line" >> /dev/stderr 34 if [ "` cat $old_fstab | grep "LABEL="`" != "" ] ; then34 if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then 35 35 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then 36 36 device="LABEL=$mountpoint" … … 89 89 col2=`echo "$incoming" | cut -f2` 90 90 col_rest=`echo "$incoming" | cut -f3-19 | tr -s ' ' ' '` 91 orig="` cat $old_fstab | grep " $col2 "| cut -f1`"91 orig="`grep " $col2 " $old_fstab | cut -f1`" 92 92 if [ "`echo "$orig" | grep "LABEL="`" != "" ] ; then 93 93 echo "orig = $orig" >> /dev/stderr
Note:
See TracChangeset
for help on using the changeset viewer.