ssm-services/services/fsck
fbt dabc53e04c WHY?!
Signed-off-by: fbt <fbt@fleshless.org>
2020-06-06 17:05:56 +03:00

16 lines
286 B
Plaintext
Executable File

#!/usr/bin/env ssm
service_type='oneshot'
service_command=( /usr/bin/fsck -A -C -p )
pre_start() {
printf 'Remounting / as read-only...\n'
mount / -o remount,ro
printf 'Checking filesystems...\n'
}
post_start() {
printf 'Remounting / as read-write...\n'
mount / -o remount,rw
}