aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/rawdevices
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/rawdevices')
-rwxr-xr-xrc.d/init.d/rawdevices24
1 files changed, 13 insertions, 11 deletions
diff --git a/rc.d/init.d/rawdevices b/rc.d/init.d/rawdevices
index 2d883ef0..cb4152a2 100755
--- a/rc.d/init.d/rawdevices
+++ b/rc.d/init.d/rawdevices
@@ -13,6 +13,8 @@
# Source function library.
. /etc/init.d/functions
+TEXTDOMAIN=initscripts
+
[ -f /usr/bin/raw ] || exit 0
[ -f /etc/sysconfig/rawdevices ] || exit 0
@@ -26,17 +28,17 @@ function assign_raw()
cat /etc/sysconfig/rawdevices | egrep -v '^ *#' | while read RAW BLOCK; do
if [ -n "$RAW" -a -n "$BLOCK" ]; then
if [ "`dirname $RAW`" = "/dev" -a -d /dev/raw ]; then
- echo " Please correct your /etc/sysconfig/rawdevices:"
- echo " rawdevices are now located in the directory /dev/raw/ "
- echo " If the command 'raw' still refers to /dev/raw as a file."
- echo " you'll have to upgrade your util-linux package"
+ gprintf " Please correct your /etc/sysconfig/rawdevices:\n"
+ gprintf " rawdevices are now located in the directory /dev/raw/\n"
+ gprintf " If the command 'raw' still refers to /dev/raw as a file.\n"
+ gprintf " you'll have to upgrade your util-linux package\n"
exit 0
fi
if [ "`dirname $RAW`" = "/dev/raw" -a -f /dev/raw ]; then
- echo " Please correct your /etc/sysconfig/rawdevices:"
- echo " rawdevices are now located in the directory /dev/raw/ "
- echo " If the command 'raw' still refers to /dev/raw as a file."
- echo " you'll have to upgrade your util-linux package"
+ gprintf " Please correct your /etc/sysconfig/rawdevices:\n"
+ gprintf " rawdevices are now located in the directory /dev/raw/\n"
+ gprintf " If the command 'raw' still refers to /dev/raw as a file.\n"
+ gprintf " you'll have to upgrade your util-linux package\n"
exit 0
fi
@@ -50,7 +52,7 @@ function assign_raw()
case "$1" in
start)
# Assign devices
- echo "Assigning devices: "
+ gprintf "Assigning devices: "
assign_raw
echo "done"
;;
@@ -63,7 +65,7 @@ case "$1" in
if [ $ID -eq 0 ]; then
raw -qa
else
- echo "You need to be root to use this command ! "
+ gprintf "You need to be root to use this command!\n"
fi
;;
@@ -72,7 +74,7 @@ case "$1" in
;;
*)
- echo "Usage: rawdevice {start|stop|status|restart}"
+ gprintf "Usage: rawdevice {start|stop|status|restart}\n"
exit 1
esac