summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/maintscript-helper1
-rw-r--r--autoscripts/postinst-init6
-rw-r--r--autoscripts/postinst-init-restart6
-rw-r--r--autoscripts/postrm-init2
-rw-r--r--autoscripts/prerm-init6
-rw-r--r--autoscripts/prerm-init-norestart6
6 files changed, 6 insertions, 21 deletions
diff --git a/autoscripts/maintscript-helper b/autoscripts/maintscript-helper
new file mode 100644
index 0000000..c7e06c4
--- /dev/null
+++ b/autoscripts/maintscript-helper
@@ -0,0 +1 @@
+dpkg-maintscript-helper #PARAMS# -- "$@"
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
index 6a1c572..2430b2c 100644
--- a/autoscripts/postinst-init
+++ b/autoscripts/postinst-init
@@ -1,8 +1,4 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
- else
- /etc/init.d/#SCRIPT# start || #ERROR_HANDLER#
- fi
+ invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
fi
diff --git a/autoscripts/postinst-init-restart b/autoscripts/postinst-init-restart
index ba4b3a0..35bba20 100644
--- a/autoscripts/postinst-init-restart
+++ b/autoscripts/postinst-init-restart
@@ -5,9 +5,5 @@ if [ -x "/etc/init.d/#SCRIPT#" ]; then
else
_dh_action=start
fi
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d #SCRIPT# $_dh_action || #ERROR_HANDLER#
- else
- /etc/init.d/#SCRIPT# $_dh_action || #ERROR_HANDLER#
- fi
+ invoke-rc.d #SCRIPT# $_dh_action || #ERROR_HANDLER#
fi
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
index 628ece6..1c29298 100644
--- a/autoscripts/postrm-init
+++ b/autoscripts/postrm-init
@@ -1,3 +1,3 @@
if [ "$1" = "purge" ] ; then
- update-rc.d #SCRIPT# remove >/dev/null || #ERROR_HANDLER#
+ update-rc.d #SCRIPT# remove >/dev/null
fi
diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init
index 96d3755..2a8aa4c 100644
--- a/autoscripts/prerm-init
+++ b/autoscripts/prerm-init
@@ -1,7 +1,3 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
- else
- /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER#
- fi
+ invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
fi
diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart
index 9b63174..cacde6e 100644
--- a/autoscripts/prerm-init-norestart
+++ b/autoscripts/prerm-init-norestart
@@ -1,7 +1,3 @@
if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
- else
- /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER#
- fi
+ invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
fi