15 lines
176 B
Plaintext
Executable File
15 lines
176 B
Plaintext
Executable File
#!/usr/bin/env ssm
|
|
|
|
service_type='oneshot'
|
|
service_command=( /usr/bin/mount -a )
|
|
|
|
pre_start() {
|
|
if [[ -w / ]]; then
|
|
mount -o remount,rw /
|
|
fi
|
|
}
|
|
|
|
post_start() {
|
|
swapon -a
|
|
}
|