ssm-services/init.d/fsck
2014-06-28 10:54:06 +04:00

17 lines
308 B
Plaintext
Executable File

#!/usr/bin/env watchman
service_command='/bin/fsck'
service_args='-A -C -p'
service_type='oneshot'
start() {
watchman.msg "Remounting / as read-only..."
mount / -o remount,ro
watchman.msg "Checking filesystems..."
watchman.start
watchman.msg "Remounting / as read-write..."
mount / -o remount,rw
}