zram-swap: robustify mkswap/swapon/swapoff invocation
authorRui Salvaterra <rsalvaterra@gmail.com>
Thu, 24 Jun 2021 19:05:21 +0000 (20:05 +0100)
committerPaul Spooren <mail@aparcar.org>
Fri, 25 Jun 2021 01:24:52 +0000 (15:24 -1000)
commit18c24a29f94ba56ecbee8c7a818368f9ef162527
treeebf6ffc9bf16e7b132e794a94c2d456146fea142
parent1818b038d7275273adbd525b5ee76bc60b7d628c
zram-swap: robustify mkswap/swapon/swapoff invocation

Instead of assuming /sbin contains the correct BusyBox symlinks, directly invoke
the busybox executable. The required utilities are guaranteed to be present,
since the zram-swap package selects them. Additionally, don't assume busybox
resides in /bin, rely on PATH to find it.

While at it, update the copyright year, use SPDX and switch to AUTORELEASE.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
package/system/zram-swap/Makefile
package/system/zram-swap/files/zram.init