]> wagnertech.de Git - projects.git/blobdiff - sh/sysd2sysv
posaune
[projects.git] / sh / sysd2sysv
index 47e399427fade10337a61c833a6732f620fd484b..5fd833575b788b363e206553f4ba9c37b9444aa0 100755 (executable)
@@ -7,6 +7,12 @@ 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