summaryrefslogtreecommitdiffstats
path: root/autoscripts/preinst-init-chmod
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--autoscripts/preinst-init-chmod3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoscripts/preinst-init-chmod b/autoscripts/preinst-init-chmod
new file mode 100644
index 0000000..4001b82
--- /dev/null
+++ b/autoscripts/preinst-init-chmod
@@ -0,0 +1,3 @@
+if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/#SCRIPT#" ] ; then
+ chmod +x "/etc/init.d/#SCRIPT#" >/dev/null || true
+fi