From 033993ef8efae14d30dced92cf4a0de4aea8ccd8 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Wed, 18 Jul 2018 11:37:15 +0200 Subject: [PATCH] epic-ts --- sh/sysd2sysv | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 sh/sysd2sysv diff --git a/sh/sysd2sysv b/sh/sysd2sysv new file mode 100755 index 0000000..47e3994 --- /dev/null +++ b/sh/sysd2sysv @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +if [ $# -ne 2 ] +then + echo "usage: sysd2sysv " + exit 1 +fi + +if [ $1 = "enable" ] +then + update-rc.d $2 defaults 100 +elif [ $1 = "disable" ] +then + update-rc.d -f $2 remove +else + /etc/init.d/$2 $1 +fi + + -- 2.20.1