diff options
author | Paul Healy <lmiphay@gmail.com> | 2015-11-03 10:18:55 +0000 |
---|---|---|
committer | Paul Healy <lmiphay@gmail.com> | 2015-11-03 10:18:55 +0000 |
commit | 946b63681de03c56311204cb072f1b030dedf67f (patch) | |
tree | dcfc7d21068d8a8dcb9a11c7a5637750d02a1a19 /app-misc/g13/files | |
parent | the pipe doesnt need to be readable by other (diff) | |
download | lmiphay-946b63681de03c56311204cb072f1b030dedf67f.tar.gz lmiphay-946b63681de03c56311204cb072f1b030dedf67f.tar.bz2 lmiphay-946b63681de03c56311204cb072f1b030dedf67f.zip |
write startup msg to LCD; pass in CFLAGS/LDFLAGS
Diffstat (limited to 'app-misc/g13/files')
-rw-r--r-- | app-misc/g13/files/g13.conf.d | 3 | ||||
-rwxr-xr-x | app-misc/g13/files/g13.init.d | 11 | ||||
-rwxr-xr-x | app-misc/g13/files/g13writelcd | 5 |
3 files changed, 17 insertions, 2 deletions
diff --git a/app-misc/g13/files/g13.conf.d b/app-misc/g13/files/g13.conf.d index 2ca3f5b..8f65114 100644 --- a/app-misc/g13/files/g13.conf.d +++ b/app-misc/g13/files/g13.conf.d @@ -3,3 +3,6 @@ # Arguments to pass to g13: g13 <logo> # G13_ARGS="/usr/share/g13/logo.lpbm" + +# Message to be written to the G13 LCD on startup +G13_LCDMSG="Welcome to\n Gentoo" diff --git a/app-misc/g13/files/g13.init.d b/app-misc/g13/files/g13.init.d index d185198..16649f2 100755 --- a/app-misc/g13/files/g13.init.d +++ b/app-misc/g13/files/g13.init.d @@ -22,13 +22,15 @@ pidfile=/run/g13.pid stopsig="SIGINT" -depend() { +depend() +{ need localmount after bootmisc provide g13 } -start_pre() { +start_pre() +{ checkpath --pipe --owner $user --mode 0660 $cmdpipe checkpath --file --owner $user --mode 0644 $logfile @@ -38,3 +40,8 @@ start_pre() { return 1 fi } + +start_post() +{ + g13writelcd "$G13_LCDMSG" +} diff --git a/app-misc/g13/files/g13writelcd b/app-misc/g13/files/g13writelcd new file mode 100755 index 0000000..830a738 --- /dev/null +++ b/app-misc/g13/files/g13writelcd @@ -0,0 +1,5 @@ +#!/bin/bash + +echo -e "$*" | pbmtext -builtin fixed | convert -resize 160x43! - - | pbm2lpbm >/run/g13-0 + +exit 0 |