Hi,
Am I having issues with getting this (http://learn.adafruit.com/drive-a-16x2-lcd-directly-with-a-raspberry-pi/init-script) to display at start up.
It runs fine if I run it manually and I have followed the guide but it stays blank on startup.
I am thinking the error must be related to when I run the following command.
$ sudo update-rc.d lcd defaults
as I get this message.
pi@raspberrypi ~ $ sudo update-rc.d lcd defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `lcd' overrides LSB defaults (2 3 4 5).
pi@raspberrypi ~ $
Could someone please help me resolve this?
This is the contents of my /etc/init.d/lcd file
### BEGIN INIT INFO
# Provides: LCD
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Liquid Crystal Display
# Description: date / time / ip address
### END INIT INFO
#! /bin/sh
# /etc/init.d/lcd
export HOME
case "$1" in
start)
echo "Starting LCD"
/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCD/Adafruit_CharLCD_IPclock_example.py 2>&1 &
;;
stop)
echo "Stopping LCD"
LCD_PID=`ps auxwww | grep Adafruit_CharLCD_IPclock_example.py |
head -1 | awk '{print $2}'`
kill -9 $LCD_PID
;;
*)
echo "Usage: /etc/init.d/lcd {start|stop}"
exit 1
;;
esac
exit 0
Thanks in advance.
Graham