File: chkboot-bootcheck

package info (click to toggle)
chkboot 1.3-8.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: sh: 267; makefile: 31
file content (20 lines) | stat: -rwxr-xr-x 700 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

# chkboot-bootcheck: on systemd systems, copy this to /usr/lib/systemd/scripts/ and start the chkboot-boot.service
#                    on other systems, copy this somewhere it can be acceed during boot and add it to the end of the boot process
#
# author: ju (ju at heisec dot de)
# contributors: inhies, prurigro
#
# license: GPLv2

source /etc/default/chkboot

chkboot

# only modify /etc/issue if that style of alert has been selected
if [ ! $(echo "${CHKBOOT_STYLES}" | grep -c "issue") = 0 ]; then
    # modify /etc/issue if any changes to boot files have been found
    CHKBOOT_CHECK=$(chkboot-check)
    if [ "$?" = 1 ]; then echo "${CHKBOOT_CHECK}" >> /etc/issue; fi
fi