epic-ts
authorMichael Wagner <michael@wagnertech.de>
Wed, 18 Jul 2018 09:49:10 +0000 (11:49 +0200)
committerMichael Wagner <michael@wagnertech.de>
Wed, 18 Jul 2018 09:49:10 +0000 (11:49 +0200)
debian/sysd2sysv.changelog [new file with mode: 0644]
debian/sysd2sysv.cp [new file with mode: 0755]
sh/sysd2sysv

diff --git a/debian/sysd2sysv.changelog b/debian/sysd2sysv.changelog
new file mode 100644 (file)
index 0000000..b3a95d9
--- /dev/null
@@ -0,0 +1,3 @@
+projects (0.1-%BUILD%) unstable; urgency=medium
+  * initial version
+ -- Michael Wagner <info@wagnertech.de>  Sun, 11 Feb 2018 20:03:04 +0100
diff --git a/debian/sysd2sysv.cp b/debian/sysd2sysv.cp
new file mode 100755 (executable)
index 0000000..919b8ab
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -e
+
+mkdir -p $1/usr/bin/
+cp sh/sysd2sysv $1/usr/bin/
+
index 47e3994..dee45a7 100755 (executable)
@@ -7,6 +7,10 @@ then
        exit 1
 fi
 
+if [ ! -f /etc/init.d/$2 ]
+       cp /etc/sysd2sysv/$2 /etc/init.d/
+fi
+
 if [ $1 = "enable" ]
 then
        update-rc.d $2 defaults 100