blob: 82b5626222a768d3f34eec764c6b308bfe001d99 (
plain) (
tree)
|
|
#!/usr/bin/env bash
check() {
# Tell dracut that this module should only be included if it is required
# explicitly.
return 255
}
depends() {
echo dnbd3-rootfs
}
install() {
_name="s3-enable-runmode"
inst "$moddir/hooks/${_name}.sh" \
"/usr/local/bin/${_name}.sh"
inst_simple "${moddir}/services/${_name}.service" \
"${systemdsystemunitdir}/${_name}.service"
mkdir --parents \
"${initdir}/${systemdsystemunitdir}/initrd.target.wants"
ln_r "${systemdsystemunitdir}/${_name}.service" \
"${systemdsystemunitdir}/initrd.target.wants/${_name}.service"
}
|