Make the hook systemd compatible
This commit is contained in:
parent
d117f2543e
commit
b43185abb4
6 changed files with 49 additions and 16 deletions
11
sd-welcomemessage.install
Normal file
11
sd-welcomemessage.install
Normal file
|
@ -0,0 +1,11 @@
|
|||
# vim:ft=sh
|
||||
|
||||
build() {
|
||||
cat $(cat /etc/welcomemessage.conf | sed -n '/filename=/p' | sed 's/filename=//') > "$BUILDROOT/welcomemessage"
|
||||
add_systemd_unit "welcomemessage.service"
|
||||
}
|
||||
help() {
|
||||
cat<<HELPEOF
|
||||
This hook will print a welcome message before the encryption password is required
|
||||
HELPEOF
|
||||
}
|
Reference in a new issue