quinta-feira, 6 de agosto de 2015

HOW TO ADD SCRIPT WHEN YOUR SYSTEM INITIALIZE


Create Scritp, for example:
##########################begin script###########################
#!/bin/bash
/etc/init.d/cups start
##########################end script###########################

After that save the script like some that in respective folder: root@:#/etc/init.d/printer.sh
Grant root@:#chmod 755 /etc/init.d/printer.sh

To finish, execute : update-rc.d printer.sh defaults

Nenhum comentário:

Postar um comentário