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