Files

updatelcd
#!/bin/bash INETADDR=`ifconfig eth0 | grep "inet addr" | cut -d ' ' -f 12 | sed -e s/addr://` if [ -z "$INETADDR" ]; then INETADDR=`ifconfig wlan0 | grep "inet addr" | cut -d ' ' -f 12 | sed -e s/addr://` fi if [ -z "$INETADDR" ]; then INETADDR='No network' fi LCDPORT=/dev/lcdsmartie LCD="/home/pi/agalanin-smartie-utils-aaa87234f4eb/smartie-cat.tcl -tty $LCDPORT -height 2" echo -e "$INETADDR\n$1" | $LCD
Report a bug