blob: 9cc9bdbe76d9d29ec75ec152480e1f963e285d0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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"
local i
for i in dmsetup mount; do
inst_simple "${moddir}/services/s3-extra-post-${i}.service" \
"${systemdsystemunitdir}/s3-extra-post-${i}.service"
ln_r "${systemdsystemunitdir}/s3-extra-post-${i}.service" \
"${systemdsystemunitdir}/initrd.target.wants/s3-extra-post-${i}.service"
done
}
|