From 83875bf388642bc3210792a1e4514b525cd9e8c2 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Wed, 18 Jul 2018 11:49:10 +0200 Subject: [PATCH] epic-ts --- debian/sysd2sysv.changelog | 3 +++ debian/sysd2sysv.cp | 6 ++++++ sh/sysd2sysv | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 debian/sysd2sysv.changelog create mode 100755 debian/sysd2sysv.cp diff --git a/debian/sysd2sysv.changelog b/debian/sysd2sysv.changelog new file mode 100644 index 0000000..b3a95d9 --- /dev/null +++ b/debian/sysd2sysv.changelog @@ -0,0 +1,3 @@ +projects (0.1-%BUILD%) unstable; urgency=medium + * initial version + -- Michael Wagner Sun, 11 Feb 2018 20:03:04 +0100 diff --git a/debian/sysd2sysv.cp b/debian/sysd2sysv.cp new file mode 100755 index 0000000..919b8ab --- /dev/null +++ b/debian/sysd2sysv.cp @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/bin/ +cp sh/sysd2sysv $1/usr/bin/ + diff --git a/sh/sysd2sysv b/sh/sysd2sysv index 47e3994..dee45a7 100755 --- a/sh/sysd2sysv +++ b/sh/sysd2sysv @@ -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 -- 2.20.1