forked from Spark/ssm-services
11
init.d/mount
11
init.d/mount
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/env watchman
|
||||
#!/usr/bin/env ssm
|
||||
|
||||
service_type='oneshot'
|
||||
service_command=( /usr/bin/mount -a )
|
||||
|
||||
spawn() {
|
||||
pre_start() {
|
||||
[[ -w / ]] || { mount -o remount,rw /; }
|
||||
mount -a
|
||||
swapon -a
|
||||
}
|
||||
|
||||
unset stop
|
||||
post_start() {
|
||||
swapon -a
|
||||
}
|
||||
|
Reference in New Issue
Block a user