diff options
| author | Syndamia <kamen@syndamia.com> | 2023-06-03 08:10:44 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2023-06-03 08:10:44 +0300 |
| commit | e5a53a617264ca3546c9a7f14b6cb037b7c22406 (patch) | |
| tree | 052585054b161490ecbdf205d9102d568050f1bb | |
| parent | 37ec8574186867c9c5d973e2c04062249e6f6eb5 (diff) | |
| download | dotfiles-e5a53a617264ca3546c9a7f14b6cb037b7c22406.tar dotfiles-e5a53a617264ca3546c9a7f14b6cb037b7c22406.tar.gz dotfiles-e5a53a617264ca3546c9a7f14b6cb037b7c22406.zip | |
[.b] Added swapfile openrc service
| -rwxr-xr-x | .b/etc/init.d/swapfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.b/etc/init.d/swapfile b/.b/etc/init.d/swapfile new file mode 100755 index 0000000..970aa7e --- /dev/null +++ b/.b/etc/init.d/swapfile @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="swapfile" +description="Enable the swap file on /home/swapfile on boot" +command=/sbin/swapon +command_args="/home/swapfile" +pidfile= + +depend() { + need root + need localmount +} |
