Module: sip-router
Branch: master
Commit: 641e5b958b3a81242745203f9bef2654f8787e37
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=641e5b9…
Author: Jan Janak <jan(a)ryngle.com>
Committer: Jan Janak <jan(a)ryngle.com>
Date: Mon Feb 1 19:04:19 2010 -0500
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.
---
pkg/debian/postinst | 2 +-
pkg/debian/ser-oob.postinst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/debian/postinst b/pkg/debian/postinst
index 71ecbe1..de0f5d1 100644
--- a/pkg/debian/postinst
+++ b/pkg/debian/postinst
@@ -36,7 +36,7 @@ fi
# ----------------------------------------------------------------------
-function fn_config_replace
+fn_config_replace ()
{
if test $# -ne 2; then
echo "Error - bad number of input parameters"
diff --git a/pkg/debian/ser-oob.postinst b/pkg/debian/ser-oob.postinst
index 71c7e09..d86a107 100644
--- a/pkg/debian/ser-oob.postinst
+++ b/pkg/debian/ser-oob.postinst
@@ -35,7 +35,7 @@ if ! test -e $DEFAULTFILE; then
fi
-function fn_config_replace
+fn_config_replace ()
{
if test $# -ne 2; then
echo "Error - bad number of input parameters"