20 Mar 22:52
Re: [parisc-linux] Re: J5000 LCD heartbeat
Stuart Brady <sdbrady <at> ntlworld.com>
2005-03-20 21:52:05 GMT
2005-03-20 21:52:05 GMT
On Sun, Mar 20, 2005 at 09:03:57PM +0100, Thibaut VARENE wrote:
> it's not that simple.
> If you want to have it gone, add
> @reboot echo "" > /proc/pdc/lcd
> in your root crontab :)
BTW, If anyone really wants scrolling, this script should do it. It has
to use character 16 for spaces, which is a bit broken -- YMMV.
====================
#!/bin/bash
STR="Linux $(uname -r) "
END=""
# Prevent the PDC from stripping leading spaces by
# using character 16 (octal 20) as a space...
STR="$(echo "$STR" | tr ' ' '\20')"
while(true); do
echo "${STR}${END}" > /proc/pdc/lcd
END="${END}${STR:0:1}"
STR="${STR:1}"
if [ -z "${STR:-}" ]; then
STR="${END}"
END=""
fi
sleep 0.25
done
(Continue reading)
RSS Feed