#!/sbin/runscript depend() { before * } check_device() { if [ ! -c /dev/ttyS1 ] ; then ewarn "/dev/ttyS1 missing, trying to create it..." rm -f /dev/ttyS1 mknod /dev/ttyS1 c 4 65 \ || return 1 fi return 0 } start() { ebegin "Initializing the Kurobox AVR" check_device \ && stty -F /dev/ttyS1 10:1:9f0d:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \ && echo -n "AAAAFFFFJJJJ>>>>VVVV>>>>ZZZZVVVVKKKK" > /dev/ttyS1 \ && echo -n "YYYY" > /dev/ttyS1 eend $? "That's not good... Your system will probably poweroff soon :-/" }