Installation-ledblink
Downlodad and compile ledblink
vim /etc/init.d/ledblink
and paste
### BEGIN INIT INFO # Provides: ledblink # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: initialize lpt ### END INIT INFO #ledblink -l parport0 #ledblink -l parport1 #ledblink -l parport2 #ledblink -l parport3 #ledblink -l parport4 #ledblink -l parport5 #ledblink -l parport6 #ledblink -l parport7 PROGDIR="/usr/local/bin/" PROGNAME="ledblink" ############################################################### COMMAND="$PROGDIR$PROGNAME" #0; $PROGDIR$PROGNAME -l parport1; $PROGDIR$PROGNAME -l parport2; $PROGDIR$PROGNAME -l parport3; $PROGDIR$PROGNAME -l parport4; $PROGDIR$PROGNAME -l parport5; $PROGDIR$PROGNAME -l parport6; $PROGDIR$PROGNAME -l parport7" ############################################################### PATH=/bin:/usr/bin:/sbin:/usr/sbin case "" in start) echo "Starting $COMMAND." $COMMAND -qq -l parport0 $COMMAND -qq -l parport1 $COMMAND -qq -l parport2 $COMMAND -qq -l parport3 $COMMAND -qq -l parport4 $COMMAND -qq -l parport5 $COMMAND -qq -l parport6 $COMMAND -qq -l parport7 ;; stop) echo "Stoping $PROGNAME." killall $PROGNAME ;; restart) update-rc.d ledblink defaults stop start ;; *) echo "Usage: ... {start|stop|restart}" exit 1 ;; esac exit 0
set daemon
{CODE}