init
This commit is contained in:
16
init.d/fsck
Executable file
16
init.d/fsck
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
}
|
Reference in New Issue
Block a user