]> CyberLeo.Net >> Repos - CDN/flag.git/blob - update-issue
Added init.d script to update /etc/issue with a flag
[CDN/flag.git] / update-issue
1 #!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 depend() {
6         need localmount
7 }
8
9 genissue() {
10         if [ -x "$(which flag)" ]
11         then
12                 echo "This is ($(flag -s '#')) \n (\s \m  \r) \t" > /etc/issue
13         fi
14 }
15
16 start() {
17         ebegin "Customizing /etc/issue"
18         genissue
19         eend $?
20 }