fixed problem with bash as /bin/sh 1.02.08
authorMichael Gebetsroither <michael.geb@gmx.at>
Thu, 16 Feb 2006 01:13:11 +0000 (02:13 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Thu, 16 Feb 2006 01:13:11 +0000 (02:13 +0100)
debian/changelog
sh-lib

index c033615..1af2ddc 100644 (file)
@@ -1,3 +1,9 @@
+grml-shlib (1.02.08) unstable; urgency=low
+
+  * fixed problem with bash as /bin/sh (thanks at mika for reporting) 
+
+ -- Michael Gebetsroither <michael.geb@gmx.at>  Thu, 16 Feb 2006 02:11:13 +0100
+
 grml-shlib (1.02.07) unstable; urgency=low
 
   * changed build system
 grml-shlib (1.02.07) unstable; urgency=low
 
   * changed build system
diff --git a/sh-lib b/sh-lib
index 51c2e79..9330a5b 100644 (file)
--- a/sh-lib
+++ b/sh-lib
@@ -618,7 +618,7 @@ function _touchService
 
 function _createServiceFunctions
 {
 
 function _createServiceFunctions
 {
-  for i in "start" "stop" "restart" "reload" "force-reload"; do
+  for i in "start" "stop" "restart" "reload" "forcereload"; do
     eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
   done
 }
     eval "function ${i}Service { _touchService ${i} \"\$1\" \"\$2\" \"\$3\"; }"
   done
 }