summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/linux-logo/files/linux-logo.initscript')
-rw-r--r--app-misc/linux-logo/files/linux-logo.initscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-misc/linux-logo/files/linux-logo.initscript b/app-misc/linux-logo/files/linux-logo.initscript
new file mode 100644
index 000000000000..cbdba089f166
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo.initscript
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+start() {
+ ebegin "Starting linux_logo"
+
+ if [ ! -x /usr/bin/linux_logo ]
+ then
+ eerror "ERROR: linux_logo not found !"
+ return 1
+ fi
+
+ ebegin " Creating /etc/issue"
+ /usr/bin/linux_logo $LOGO $OPTIONS -F "${FORMAT}" > /etc/issue
+ eend $? " Failed to create /etc/issue"
+
+ ebegin " Creating /etc/issue.net"
+ /usr/bin/linux_logo $LOGO $OPTIONS -F "${FORMATNET}" > /etc/issue.net
+ eend $? " Failed to create /etc/issue.net"
+}