init commit
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
depend() {
|
||||
after localmount
|
||||
before display-manager tinydm
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Activating swap file"
|
||||
swapfile
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [ "$RC_RUNLEVEL" = "shutdown" ]; then
|
||||
return 0
|
||||
fi
|
||||
ebegin "Deactivating swap file"
|
||||
swapoff /swapfile >/dev/null 2>&1 || true
|
||||
eend 0
|
||||
}
|
||||
|
||||
restart() {
|
||||
ebegin "Restarting swap file"
|
||||
start
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user