X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/83875bf388642bc3210792a1e4514b525cd9e8c2..d51a08d0126a4b95d1519fc52fe30dd4e27e3507:/sh/sysd2sysv diff --git a/sh/sysd2sysv b/sh/sysd2sysv index dee45a7..d1dec0d 100755 --- a/sh/sysd2sysv +++ b/sh/sysd2sysv @@ -8,12 +8,14 @@ then fi if [ ! -f /etc/init.d/$2 ] - cp /etc/sysd2sysv/$2 /etc/init.d/ +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