sysv init scripts: remove gettext invocations
authorAndré Erdmann <dywi@mailerd.de>
Sun, 26 Oct 2014 17:41:44 +0000 (18:41 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Oct 2014 17:51:00 +0000 (18:51 +0100)
$"str" is supposed to translate str (depending on the current locale).
In ash/dash/..., it cannot be expanded, so commands like

 echo  $"Usage: $0 start|stop"

are printed as '$Usage: SCRIPT start|stop' in [d]ash,
and as 'Usage: SCRIPT start|stop' in bash.

This patch removes the '$' in front of '"'.

Command(s) used for editing:

  find . -type f -name '[SK][0-9][0-9]*' | \
     xargs sed -r -e 's@[$](["])@\1@g' -i

Signed-off-by: André Erdmann <dywi@mailerd.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/busybox/S15watchdog
package/inadyn/S70inadyn
package/netatalk/S50netatalk

index 7f1110c46ecf4de7aa5eac3b4e2afcc5773415b7..470c6d7301d054cccc53c27af8c9baac906c42ae 100644 (file)
@@ -13,7 +13,7 @@ case "$1" in
   restart|reload)
        ;;
   *)
-       echo $"Usage: $0 {start|stop|restart}"
+       echo "Usage: $0 {start|stop|restart}"
        exit 1
 esac
 
index b5d7eed6fa91b2f959b64d96f8d0e7e76e74f087..96e75329c41bc120b9ae30ddf72fdeb0d1e4ddca 100644 (file)
@@ -29,7 +29,7 @@ case "$1" in
                "$0" start
                ;;
                *)
-               echo $"Usage: $0 {start|stop|restart}"
+               echo "Usage: $0 {start|stop|restart}"
                exit 1
 esac
 
index f1091749615e77aa34aaf51fe847c1b077612b7d..287b20d7741ce41b757d935ee202f70512f7e3b4 100755 (executable)
@@ -25,7 +25,7 @@ case "$1" in
         stop
     ;;
     *)
-        echo $"Usage: $0 {start|stop|restart}"
+        echo "Usage: $0 {start|stop|restart}"
         exit 1
 esac