diff options
author | Rui Salvaterra <rsalvaterra@gmail.com> | 2020-08-14 13:21:22 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2020-09-20 17:52:25 +0200 |
commit | 90853439a162d7c5389f6a68028b4390c349c04d (patch) | |
tree | acf00a6977d93e834fc1eca62f2d459cd5159455 /package/system/zram-swap/Makefile | |
parent | cd36c0d2f093ec6b8a2c6e9b7b300a2fd4fc87b3 (diff) | |
download | upstream-90853439a162d7c5389f6a68028b4390c349c04d.tar.gz upstream-90853439a162d7c5389f6a68028b4390c349c04d.tar.bz2 upstream-90853439a162d7c5389f6a68028b4390c349c04d.zip |
zram-swap: explicitly use mkswap/swapon/swapoff from /sbin
The required BusyBox applets are enabled by default, so we can rely on them
being present in the system. This way, we make sure there are no conflicts
with less featured variants of these same applets which might also be
present in the system.
Fixes: 0bd7dfa3ed60 ("zram-swap: enable swap discard")
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
[wrap commit description]
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/system/zram-swap/Makefile')
-rw-r--r-- | package/system/zram-swap/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile index 5c132c9062..9a18dd3417 100644 --- a/package/system/zram-swap/Makefile +++ b/package/system/zram-swap/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zram-swap -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) @@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/package.mk define Package/zram-swap SECTION:=utils CATEGORY:=Base system - DEPENDS:=+kmod-zram +!(BUSYBOX_CONFIG_MKSWAP&&BUSYBOX_CONFIG_SWAPON&&BUSYBOX_CONFIG_SWAPOFF):swap-utils + DEPENDS:=+kmod-zram +@BUSYBOX_CONFIG_MKSWAP +@BUSYBOX_CONFIG_SWAPON +@BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD +@BUSYBOX_CONFIG_FEATURE_SWAPON_PRI +@BUSYBOX_CONFIG_SWAPOFF TITLE:=ZRAM swap scripts PKGARCH:=all endef |