]> wagnertech.de Git - projects.git/blobdiff - sh/sysd2sysv
posaune
[projects.git] / sh / sysd2sysv
index 061b462ce671672cd8ee7dd6467c27c8a775ff26..5fd833575b788b363e206553f4ba9c37b9444aa0 100755 (executable)
@@ -9,7 +9,8 @@ fi
 
 if [ ! -f /etc/init.d/$2 ]
 then
-       cp /etc/sysd2sysv/$2 /etc/init.d/
+       sed "s/%PROG%/$2/" /var/sysd2sysv/sysd2sysv.tpl > /etc/init.d/$2
+       chmod 755 /etc/init.d/$2
 fi
 
 if [ $1 = "enable" ]