summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-extra-script/module-setup.sh
blob: da05742974583945c6614e353334795670f50663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

check() {
	return 255
}
depends() {
	echo conf-tgz
}
install() {
	slx_service "s3-extra-script" "Execute extra script from URL" \
		--wafter "s3-fetch-config.service" \
		--before "s3-dnbd3root.service"
	mkdir --parents "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
	inst_simple "${moddir}/services/s3-extra-post-dmsetup.service" \
		"${systemdsystemunitdir}/s3-extra-post-dmsetup.service"
	ln_r "${systemdsystemunitdir}/s3-extra-post-dmsetup.service" \
		"${systemdsystemunitdir}/initrd.target.wants/s3-extra-post-dmsetup.service"
}