summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:34:24 +0000
committerjoey <joey>1999-08-17 04:34:24 +0000
commit1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96 (patch)
tree212e56dc8ea32cf27cd2a33ac901a92a701f063f /autoscripts
parentface7b5d7df5fb2b8f434bc7135f27b38329a5c5 (diff)
downloaddebhelper-1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96.tar.gz
r11: Initial revision
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 00000000..976c6b34
--- /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 00000000..05357d07
--- /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 00000000..1294d313
--- /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 00000000..9596dd97
--- /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 00000000..9712d256
--- /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 00000000..64975a38
--- /dev/null
+++ b/autoscripts/prerm-init
@@ -0,0 +1 @@
+/etc/init.d/#SCRIPT# stop