Explorar el Código

packaging: Make postinst scripts dash compatible

Debian Squeeze uses dash as the shell for systems scripts by default
and dash does not support the keyword "function" like bash does.
Jan Janak hace 15 años
padre
commit
641e5b958b
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      pkg/debian/postinst
  2. 1 1
      pkg/debian/ser-oob.postinst

+ 1 - 1
pkg/debian/postinst

@@ -36,7 +36,7 @@ fi
 
 
 # ----------------------------------------------------------------------
 # ----------------------------------------------------------------------
 
 
-function fn_config_replace 
+fn_config_replace ()
 {
 {
 	if test $# -ne 2; then
 	if test $# -ne 2; then
 	  echo "Error - bad number of input parameters"
 	  echo "Error - bad number of input parameters"

+ 1 - 1
pkg/debian/ser-oob.postinst

@@ -35,7 +35,7 @@ if ! test -e $DEFAULTFILE; then
 fi
 fi
 
 
 
 
-function fn_config_replace 
+fn_config_replace ()
 {
 {
 	if test $# -ne 2; then
 	if test $# -ne 2; then
 	  echo "Error - bad number of input parameters"
 	  echo "Error - bad number of input parameters"