6 echo "usage: sysd2sysv <command> <deamon>"
10 if [ ! -f /etc/init.d/$2 ]
12 sed "s/%PROG%/$2/" /var/sysd2sysv/sysd2sysv.tpl > /etc/init.d/$2
13 chmod 755 /etc/init.d/$2
18 update-rc.d $2 defaults 99
19 elif [ $1 = "disable" ]
21 update-rc.d -f $2 remove