Lakka-LibreELEC/packages/sysutils/util-linux/system.d/swap.service
2016-03-12 01:41:55 +01:00

22 lines
448 B
Desktop File

[Unit]
Description=Mounting swapfile
DefaultDependencies=false
Before=swap.target shutdown.target
Conflicts=shutdown.target
Wants=swap.target
ConditionPathExists=/proc/swaps
ConditionKernelCommandLine=!noswap
ConditionKernelCommandLine=!installer
[Service]
Environment=HOME=/storage
Type=oneshot
ExecStartPre=/usr/lib/libreelec/mount-swap create
ExecStart=/usr/lib/libreelec/mount-swap mount
RemainAfterExit=yes
[Install]
WantedBy=basic.target