pmaports/main/postmarketos-base/swapfile/swapfile.init
Luca Weiss e350b00b9b
treewide: chmod -x files (MR 1237)
We don't want executable APKBUILDs, deviceinfo files, etc in pmaports.
Remove the executable bit from those files.

[ci:skip-build]
[ci:skip-vercheck]
2020-05-23 17:29:18 +02:00

27 lines
265 B
Text

#!/sbin/openrc-run
depend()
{
after localmount
}
start()
{
ebegin "Activating swap file"
/sbin/swapfile
eend $?
}
stop()
{
ebegin "Deactivating swap file"
/sbin/swapoff -a >/dev/null
eend $?
}
restart()
{
ebegin "Restarting swap file"
start
eend $?
}