From 0cfcab1db4508d758ccd28437f72982b9593c5da Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Tue, 6 Jan 2009 09:19:40 -0600 Subject: [PATCH] Added init.d script to update /etc/issue with a flag --- update-issue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 update-issue diff --git a/update-issue b/update-issue new file mode 100755 index 0000000..5bbafeb --- /dev/null +++ b/update-issue @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount +} + +genissue() { + if [ -x "$(which flag)" ] + then + echo "This is ($(flag -s '#')) \n (\s \m \r) \t" > /etc/issue + fi +} + +start() { + ebegin "Customizing /etc/issue" + genissue + eend $? +} -- 2.42.0