]>
Commit | Line | Data |
---|---|---|
aff192e6 DM |
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 | ||
9003d6e3 DM |
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 | |
aff192e6 DM |
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 |