pve-manager/bin/init.d/pvebanner
Dietmar Maurer d44735b0b3 pvebanner: overwrite /etc/issue instead of printing to stdout
That way be get the pve banner for all spanned getty.

We also create /etc/lsb-base-logging.sh and set FANCYTTY=0, because this
work better wit bootlogd (no control characters in /var/log/boot.
2013-03-25 09:01:59 +01:00

34 lines
543 B
Bash
Executable File

#!/bin/sh
### BEGIN INIT INFO
# Provides: pvebanner
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: print PVE banner
### END INIT INFO
. /lib/lsb/init-functions
PATH=/sbin:/bin:/usr/bin:/usr/sbin
test -f /usr/bin/pvebanner || exit 0
test -f /etc/lsb-base-logging.sh || echo "FANCYTTY=0" >/etc/lsb-base-logging.sh
case "$1" in
start)
pvebanner
;;
stop|restart|force-reload)
exit 1
;;
*)
echo "Usage: /etc/init.d/pvebanner {start}"
exit 1
;;
esac
exit 0