20 lines
312 B
Plaintext
Raw Normal View History

#!/usr/bin/env ssm
2013-09-29 03:32:39 +04:00
service_type='oneshot'
service_command=( /usr/bin/fsck -A -C -p )
2013-09-29 03:32:39 +04:00
pre_start() {
printf 'Remounting / as read-only...\n'
2013-09-29 03:32:39 +04:00
mount / -o remount,ro
}
2013-09-29 03:32:39 +04:00
start() {
printf 'Checking filesystems...\n'
super_start
}
2013-09-29 03:32:39 +04:00
post_start() {
printf 'Remounting / as read-write...\n'
2013-09-29 03:32:39 +04:00
mount / -o remount,rw
}