ssm-services/init.d/fsck
fbt 2205f72a2e watchman -> ssm
Signed-off-by: fbt <fbt@fleshless.org>
2017-07-13 16:09:42 +03:00

20 lines
312 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
}
start() {
printf 'Checking filesystems...\n'
super_start
}
post_start() {
printf 'Remounting / as read-write...\n'
mount / -o remount,rw
}