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.
34 lines
543 B
Bash
Executable File
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
|