Changeset 1530 in MondoRescue
- Timestamp:
- Jul 6, 2007, 4:36:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1529 r1530 1289 1289 fi 1290 1290 1291 # 2nd try : blkid, the good way for all LABELexcept swap1291 # 2nd try : blkid, the good way for all UUID except swap 1292 1292 if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then 1293 1293 actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | cut -d':' -f1` … … 1312 1312 for dev in $list_dev ; do 1313 1313 dev_exists=`/sbin/vol_id $dev | /bin/grep "$uuid"` 1314 if [ "x$dev_exists" != "x" ]; then 1315 actual_dev=$dev 1316 break; 1317 fi 1318 done 1319 fi 1320 1321 # 4th try, with dumpuuid (VMWare only ?) for swap 1322 if [ "x$actual_dev" = "x" -a -x "/sbin/dumpuuid" ]; then 1323 list_dev=`cat /proc/swaps | /bin/grep -E '^/' | $AWK '{ print $1 }' ` 1324 for dev in $list_dev ; do 1325 dev_exists=`/sbin/dumpuuid $dev | /bin/grep "$uuid"` 1314 1326 if [ "x$dev_exists" != "x" ]; then 1315 1327 actual_dev=$dev … … 3061 3073 lsmod >> $LOGFILE 3062 3074 MODULES="`cat /proc/modules | awk '{print $1}'`" 3063 if [ - e/usr/sbin/esxcfg-module ]; then3075 if [ -x /usr/sbin/esxcfg-module ]; then 3064 3076 echo "VMWare ESX server detected - Enabling dedicated support" >> $LOGFILE 3065 3077 echo "-------------" >> $LOGFILE 3066 3078 echo "VMWare modules" >> $LOGFILE 3067 3079 echo "-------------" >> $LOGFILE 3068 esxcfg-module -l >> $LOGFILE3080 /usr/sbin/esxcfg-module -l >> $LOGFILE 3069 3081 MODULES="$MODULES `esxcfg-module -l | awk '{print $1}'`" 3070 3082 fi
Note:
See TracChangeset
for help on using the changeset viewer.