Main page
Recent changes
Installation-ledblink
B
I
U
S
link
image
code
list
Show page
Syntax
Downlodad and compile [ledblink|https://www.bitplanet.de/unix/ledblink.html] {{ 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 "$1" 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) $0 stop $0 start ;; *) echo "Usage: ... {start|stop|restart}" exit 1 ;; esac exit 0 }} set daemon {{ update-rc.d ledblink defaults }}