summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-init2
-rw-r--r--autoscripts/postinst-init-norestart1
-rw-r--r--autoscripts/postinst-suid6
-rw-r--r--autoscripts/postrm-init3
-rw-r--r--autoscripts/postrm-suid3
-rw-r--r--autoscripts/prerm-init1
6 files changed, 16 insertions, 0 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
new file mode 100644
index 0000000..976c6b3
--- /dev/null
+++ b/autoscripts/postinst-init
@@ -0,0 +1,2 @@
+update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+/etc/init.d/#SCRIPT# start
diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart
new file mode 100644
index 0000000..05357d0
--- /dev/null
+++ b/autoscripts/postinst-init-norestart
@@ -0,0 +1 @@
+update-rc.d #SCRIPT# #INITPARMS# >/dev/null
diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid
new file mode 100644
index 0000000..1294d31
--- /dev/null
+++ b/autoscripts/postinst-suid
@@ -0,0 +1,6 @@
+if [ -e /etc/suid.conf -a -x /usr/sbin/suidregister ]; then
+ suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
+else
+ chown #OWNER#.#GROUP# /#FILE#
+ chmod #PERMS# /#FILE#
+fi
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
new file mode 100644
index 0000000..9596dd9
--- /dev/null
+++ b/autoscripts/postrm-init
@@ -0,0 +1,3 @@
+if [ "$1" = "purge" ] ; then
+ update-rc.d #SCRIPT# remove #INITPARMS# >/dev/null
+fi
diff --git a/autoscripts/postrm-suid b/autoscripts/postrm-suid
new file mode 100644
index 0000000..9712d25
--- /dev/null
+++ b/autoscripts/postrm-suid
@@ -0,0 +1,3 @@
+if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
+ suidunregister -s #PACKAGE# /#FILE#
+fi
diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init
new file mode 100644
index 0000000..64975a3
--- /dev/null
+++ b/autoscripts/prerm-init
@@ -0,0 +1 @@
+/etc/init.d/#SCRIPT# stop