20 lines
368 B
Bash
Executable File
20 lines
368 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
check() {
|
|
require_binaries boot-tree || return 1
|
|
return 255
|
|
}
|
|
|
|
depends() {
|
|
echo systemd
|
|
}
|
|
|
|
install() {
|
|
inst_binary boot-tree
|
|
inst_simple "$systemdsystemunitdir/boot-tree.service"
|
|
if [[ -f /etc/boot-tree.toml ]]; then
|
|
inst_simple /etc/boot-tree.toml
|
|
fi
|
|
$SYSTEMCTL -q --root "$initdir" enable boot-tree.service
|
|
}
|