zram-swap: bail out early if the kernel doesn't support swap
authorRui Salvaterra <rsalvaterra@gmail.com>
Thu, 1 Apr 2021 13:36:33 +0000 (14:36 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Apr 2021 16:57:13 +0000 (18:57 +0200)
commit565dfeb1280343fb3f838581169e5d7a1c947862
tree0c8df2183fd7f24a31dc4db213d5d99a1bce938f
parent829fa33899911f5e2a1229a6fdea98feb1d09029
zram-swap: bail out early if the kernel doesn't support swap

Since KERNEL_SWAP is only enabled by default for !SMALL_FLASH targets, we need
to check if the current kernel supports swap before trying to configure
zram-swap, as opkg can't check for kernel dependencies.

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