posaune
[projects.git] / sh / sysd2sysv
index 061b462..5fd8335 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" ]