- Timestamp:
- Apr 25, 2009, 2:36:47 AM (16 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/init
r2174 r2177 397 397 } 398 398 399 StartPowerPath() { 400 401 # Taken from the init script of EMC PowerPath on RHEL 402 if [ -f /etc/emcp_devicesDB.dat ]; then 403 if [ -f /etc/emcp_devicesDB.idx ]; then 404 /etc/opt/emcpower/emcpmgr map -p > /dev/null 2>&1 405 fi 406 fi 407 408 /sbin/powermt config > /dev/null 2>&1 409 # Wait for udev to finish creating emcpower devices 410 # 411 pdfound=1 412 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do 413 pdfound=1 414 for pd in `/bin/ls -d /sys/block/emcpower* 2> /dev/null`; do 415 bpd=`basename $pd` 416 if [ ! -e /dev/$bpd ]; then 417 pdfound=0 418 sleep 2 419 break; 420 fi 421 done 422 if [ "$pdfound" -eq 1 ]; then 423 break 424 fi 425 done 426 if [ "$pdfound" -eq 0 ]; then 427 echo "Unable to start PowerPath" 428 fi 429 430 /sbin/powermt load > /dev/null 2>&1 431 /etc/opt/emcpower/emcpmgr map > /dev/null 2>&1 432 /etc/opt/emcpower/powercf -C > /dev/null 2>&1 433 if [ ! -e /etc/powermt.custom ]; then 434 /sbin/powermt save > /dev/null 2>&1 435 fi 436 /sbin/powermt register > /dev/null 2>&1 437 /sbin/powermig transition -startup -noprompt > /dev/null 2>&1 438 } 399 439 400 440 StartMpath() { -
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2131 r2177 1068 1068 } else { 1069 1069 strcpy(good_formats, " "); 1070 (void) fgets(good_formats + 1, MAX_STR_LEN , pin);1070 (void) fgets(good_formats + 1, MAX_STR_LEN - 1, pin); 1071 1071 if (pclose(pin)) { 1072 1072 log_OS_error("Cannot pclose good formats");
Note:
See TracChangeset
for help on using the changeset viewer.