Changeset 2130 in MondoRescue for branches/2.2.8
- Timestamp:
- Jan 21, 2009, 2:38:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/restore-scripts/mondo/mount-subroutine-me
r1999 r2130 20 20 mountdir="/mnt/RESTORING$mountpt" 21 21 if [ "$mounttype" = "swap" ] ; then 22 swapon $partno22 swapon $partno 23 23 else 24 24 if [ -e "$mountdir" ] && [ ! -d "$mountdir" ] ; then … … 37 37 fi 38 38 LogIt "Mounting $partno..." 2 39 if [ -e "/tmp/MOUNT-READONLY" ] ; then39 if [ -e "/tmp/MOUNT-READONLY" ] ; then 40 40 mount $partno -t $mounttype -o ro $mountdir 41 41 else … … 45 45 LogIt "Failed to mount $partno" 3 46 46 errors=$(($errors+1)) 47 fi48 res=`mount | grep "$partno"`49 if [ "$res" = "" ] ; then50 LogIt "I think I failed to mount $partno" 351 errors=$(($errors+1))52 else47 fi 48 res=`mount | grep "$partno"` 49 if [ "$res" = "" ] ; then 50 LogIt "I think I failed to mount $partno" 3 51 errors=$(($errors+1)) 52 else 53 53 LogIt "$partno mounted ok." 2 54 54 fi
Note:
See TracChangeset
for help on using the changeset viewer.