1 --- EMCpower-5.0.0/PowerPath~ 2007-02-07 10:06:21.000000000 +0200
2 +++ EMCpower-5.0.0/PowerPath 2006-09-04 16:10:03.000000000 +0300
7 +# Source function library.
8 +. /etc/rc.d/init.d/functions
11 # Functions to preserve exceptional command status return values
15 case "$rc_script_stat" in
17 - echo "`eval_gettext \" done\"`"
21 - echo "`eval_gettext \" failed\"`"
27 err_stop=`/sbin/vgchange -a n $i 2>&1 | grep "open logical volume"`
28 if [ "$err_stop" != "" ]; then
29 if [ "$open_vol" = "" ]; then
30 - echo "`eval_gettext \"Following LVM volume groups are in use:\"`"
31 + nls "Following LVM volume groups are in use:"
36 - echo "`eval_gettext \" Volume Group: \\$var1 (\\$var2)\"`"
37 + echo "`nls " Volume Group: \\$var1 (\\$var2)"`"
42 if [ "$open_vol" != "" ]; then
43 - echo "`eval_gettext \"These open logical volume devices use LUNs from Powerpath managed devices,\"`"
44 - echo "`eval_gettext \"Please re-issue the command after closing these volumes.\"`"
45 + nls "These open logical volume devices use LUNs from Powerpath managed devices,"
46 + nls "Please re-issue the command after closing these volumes."
54 - echo -e "`eval_gettext \"\nSuccessfully started 32-bit emulation library\"`"
55 + nls "\nSuccessfully started 32-bit emulation library"
57 - echo -e "`eval_gettext \"\nError in starting 32-bit emulation library\"`"
58 + nls "\nError in starting 32-bit emulation library"
64 if [ -f /etc/emcp_devicesDB.dat ]; then
65 if [ -f /etc/emcp_devicesDB.idx ]; then
66 - /etc/opt/emcpower/emcpmgr map -p > /dev/null 2>&1
67 + /sbin/emcpmgr map -p > /dev/null 2>&1
74 /sbin/powermt load > /dev/null 2>&1
76 - /etc/opt/emcpower/emcpmgr map > /dev/null 2>&1
77 + /sbin/emcpmgr map > /dev/null 2>&1
79 - /etc/opt/emcpower/powercf -C > /dev/null 2>&1
80 + /sbin/powercf -C > /dev/null 2>&1
81 /sbin/powermt save > /dev/null 2>&1
83 /sbin/powermt register > /dev/null 2>&1
87 ps -C naviagent >> /dev/null
89 - echo "`eval_gettext \"Navisphere agent is running.\"`"
90 - echo "`eval_gettext \"Please stop the agent and then re-issue \\$script_name stop.\"`"
91 + nls "Navisphere agent is running."
92 + eval echo "$(nls \"Please stop the agent and then re-issue \\$script_name stop.\")"
96 ps -C powermt >> /dev/null
98 - echo "`eval_gettext \"The powermt command is running.\"`"
99 - echo "`eval_gettext \"Please stop powermt and then re-issue \\$script_name stop.\"`"
100 + nls "The powermt command is running."
101 + echo "`eval nls \"Please stop powermt and then re-issue \\$script_name stop.\"`"
105 /sbin/modprobe -q -s --first-time $d
107 if [ $? -ne 0 ] ; then
108 - echo "`eval_gettext \"PowerPath could not load module \\$d\"`"
109 + echo "`eval nls \"PowerPath could not load module \\$d\"`"
117 - echo -n "`eval_gettext \"Starting \\$script_name: \"`"
118 + eval echo -n "$(nls "Starting \$script_name: ")"
121 # Start the 32-bit emulation for ia64
126 - echo "`eval_gettext \"PowerPath: unable to load PowerPath modules.\"`"
127 + nls "PowerPath: unable to load PowerPath modules."
131 @@ -419,11 +422,11 @@
135 - echo -n "`eval_gettext \"Stopping \\$script_name: \"`"
136 + eval echo -n "$(nls "Stopping \$script_name: ")"
137 lsmod | grep -w '^emcp' > /dev/null
140 - echo "`eval_gettext \"PowerPath is not running\"`"
141 + nls "PowerPath is not running"
144 # Tresspass can happen if new devices are added or some devices
147 /sbin/powermt save > /dev/null 2>&1
149 - /etc/opt/emcpower/emcpmgr unmap > /dev/null 2>&1
150 + /sbin/emcpmgr unmap > /dev/null 2>&1
152 /sbin/powermt remove dev=all 2> /var/tmp/.pp_exit
154 cat /var/tmp/.pp_exit | grep "not found" > /dev/null 2>&1
160 - echo "`eval_gettext \"Usage: \\$var {start|stop}\"`"
161 + eval echo "$(nls "Usage: \$var {start\|stop}")"