aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/zram-swap/Makefile
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2021-06-24 20:05:21 +0100
committerPaul Spooren <mail@aparcar.org>2021-06-24 15:24:52 -1000
commit18c24a29f94ba56ecbee8c7a818368f9ef162527 (patch)
treeebf6ffc9bf16e7b132e794a94c2d456146fea142 /package/system/zram-swap/Makefile
parent1818b038d7275273adbd525b5ee76bc60b7d628c (diff)
downloadupstream-18c24a29f94ba56ecbee8c7a818368f9ef162527.tar.gz
upstream-18c24a29f94ba56ecbee8c7a818368f9ef162527.tar.bz2
upstream-18c24a29f94ba56ecbee8c7a818368f9ef162527.zip
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>
Diffstat (limited to 'package/system/zram-swap/Makefile')
-rw-r--r--package/system/zram-swap/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile
index 80f87fcdff..d0d1baddd1 100644
--- a/package/system/zram-swap/Makefile
+++ b/package/system/zram-swap/Makefile
@@ -1,14 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-only
#
-# Copyright (C) 2013 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
+# Copyright (C) 2013-2021 OpenWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=zram-swap
-PKG_RELEASE:=8
+PKG_RELEASE:=$(AUTORELEASE)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)