summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-runmode/module-setup.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-09 16:34:05 +0100
committerSimon Rettberg2024-02-09 16:34:05 +0100
commitf4429e978c8a828b6beaf1f01cf395d22e1ea799 (patch)
tree8f9591831a528e784d86390aeb74fb55125dfb27 /modules.d/slx-runmode/module-setup.sh
parentExtend service file template for scripts (diff)
downloadsystemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.gz
systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.xz
systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.zip
Use slx_service helper to create service files
Diffstat (limited to 'modules.d/slx-runmode/module-setup.sh')
-rwxr-xr-xmodules.d/slx-runmode/module-setup.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/modules.d/slx-runmode/module-setup.sh b/modules.d/slx-runmode/module-setup.sh
index 82b56262..d9c991b7 100755
--- a/modules.d/slx-runmode/module-setup.sh
+++ b/modules.d/slx-runmode/module-setup.sh
@@ -8,13 +8,6 @@ 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"
+ slx_service "s3-enable-runmode" "Set up proper default target" \
+ --wafter "s3-fetch-config.service"
}