[openwrt/openwrt] zram-swap: use new extra_command wrapper
LEDE Commits
lede-commits at lists.infradead.org
Mon Nov 2 15:33:02 EST 2020
dedeckeh pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0232bf601d6c8c174faa4c5bac1f6c86b20853c9
commit 0232bf601d6c8c174faa4c5bac1f6c86b20853c9
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Fri Jul 24 09:34:41 2020 +0200
zram-swap: use new extra_command wrapper
Use new `extra_command` wrapper to fix the alignement.
Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
package/system/zram-swap/Makefile | 2 +-
package/system/zram-swap/files/zram.init | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile
index 9a18dd3417..18c6afee96 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:=7
+PKG_RELEASE:=8
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
diff --git a/package/system/zram-swap/files/zram.init b/package/system/zram-swap/files/zram.init
index a42f019d92..c6b7ae89c2 100755
--- a/package/system/zram-swap/files/zram.init
+++ b/package/system/zram-swap/files/zram.init
@@ -2,9 +2,8 @@
START=15
-EXTRA_COMMANDS="compact status"
-EXTRA_HELP=" compact trigger compaction for all Z-RAM swap dev's
- status print out status information & statistics about Z-RAM swap devices"
+extra_command "compact" "Trigger compaction for all Z-RAM swap dev's"
+extra_command "status" "Print out information & statistics about Z-RAM swap devices"
ram_getsize()
{
More information about the lede-commits
mailing list