From: Michael Wagner Date: Wed, 18 Jul 2018 09:37:15 +0000 (+0200) Subject: epic-ts X-Git-Tag: sysd2sysv_0.1-1~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=033993ef8efae14d30dced92cf4a0de4aea8ccd8;p=projects.git epic-ts --- 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 + +