X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sh%2Fsysd2sysv;h=d1dec0ddbda35e43ca6556d4be58e25c5e109e57;hb=refs%2Ftags%2Fduview_0.1-0;hp=47e399427fade10337a61c833a6732f620fd484b;hpb=7c9179865a6457ed9bbe4dec9d00c37ceb18bdc0;p=projects.git diff --git a/sh/sysd2sysv b/sh/sysd2sysv index 47e3994..d1dec0d 100755 --- a/sh/sysd2sysv +++ b/sh/sysd2sysv @@ -7,9 +7,15 @@ then exit 1 fi +if [ ! -f /etc/init.d/$2 ] +then + sed "s/%PROG%/$2/" /var/sysd2sysv/sysd2sysv.tpl > /etc/init.d/$2 + chmod 755 /etc/init.d/$2 +fi + if [ $1 = "enable" ] then - update-rc.d $2 defaults 100 + update-rc.d $2 defaults 99 elif [ $1 = "disable" ] then update-rc.d -f $2 remove