Changeset 275 in MondoRescue for branches/2.06/mondo/mondo/restore-scripts/mondo/hack-lilo
- Timestamp:
- Jan 3, 2006, 4:59:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/restore-scripts/mondo/hack-lilo
r273 r275 15 15 GetOldFstabMountpoint() { 16 16 local res 17 res=` cat $old_fstab | tr -s '\t' ' '| grep "$1" | cut -d' ' -f2`17 res=`tr -s '\t' ' ' < $old_fstab | grep "$1" | cut -d' ' -f2` 18 18 # echo "old_fstab = $old_fstab" >> /dev/stderr 19 19 if [ "$res" = "" ] ; then 20 20 # echo "OK, resB" >> /dev/stderr 21 res=` cat $old_mountlist | tr -s '\t' ' '| grep " $1 " | cut -d' ' -f1`21 res=`tr -s '\t' ' ' < $old_mountlist | grep " $1 " | cut -d' ' -f1` 22 22 fi 23 23 echo "$res" … … 34 34 old_mountpoint=`GetOldFstabMountpoint $1` 35 35 # echo "old_mountpoint = $old_mountpoint" >> /dev/stderr 36 new_mountpoint=` cat $new_mountlist | tr -s '\t' ' '| grep " $old_mountpoint" | cut -d' ' -f1`36 new_mountpoint=`tr -s '\t' ' ' < $new_mountlist | grep " $old_mountpoint" | cut -d' ' -f1` 37 37 if [ "$new_mountpoint" = "" ] ; then 38 mtpt=` cat $new_mountlist | tr -s '\t' ' '| grep " $old_mountpoint " | cut -d' ' -f2`39 dev=` cat $new_mountlist | tr -s '\t' ' '| grep " $mtpt " | cut -d' ' -f1`38 mtpt=`tr -s '\t' ' ' < $new_mountlist | grep " $old_mountpoint " | cut -d' ' -f2` 39 dev=`tr -s '\t' ' ' < $new_mountlist | grep " $mtpt " | cut -d' ' -f1` 40 40 # echo "NEW_MP (A) = $dev" >> /dev/stderr 41 41 # else
Note:
See TracChangeset
for help on using the changeset viewer.