]> git.proxmox.com Git - pve-manager.git/blob - bin/init.d/pvebanner
9c3312c9b0cb0ee3d0aa8f186bd1de2c89700465
[pve-manager.git] / bin / init.d / pvebanner
1 #!/bin/sh
2
3 ### BEGIN INIT INFO
4 # Provides: pvebanner
5 # Required-Start: $all
6 # Required-Stop:
7 # Default-Start: 2 3 4 5
8 # Default-Stop:
9 # Short-Description: print PVE banner
10 ### END INIT INFO
11
12 . /lib/lsb/init-functions
13
14 PATH=/sbin:/bin:/usr/bin:/usr/sbin
15
16 test -f /usr/bin/pvebanner || exit 0
17
18 test -f /etc/lsb-base-logging.sh || echo "FANCYTTY=0" >/etc/lsb-base-logging.sh
19
20 case "$1" in
21 start)
22 pvebanner
23 ;;
24 stop|restart|force-reload)
25 exit 1
26 ;;
27 *)
28 echo "Usage: /etc/init.d/pvebanner {start}"
29 exit 1
30 ;;
31 esac
32
33 exit 0