ssm-services/services/mount
fbt 6033c3cb18 Do not forget about exit codes, grr
Signed-off-by: fbt <fbt@fleshless.org>
2018-01-08 02:47:28 +03:00

15 lines
176 B
Plaintext
Executable File

#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/mount -a )
pre_start() {
if [[ -w / ]]; then
mount -o remount,rw /
fi
}
post_start() {
swapon -a
}