ssm-services/init.d/fsck
2013-09-29 03:32:39 +04:00

17 lines
284 B
Plaintext
Executable File

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