2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/zram-swap
21 +@BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD \
22 +@BUSYBOX_CONFIG_FEATURE_SWAPON_PRI \
23 +@BUSYBOX_CONFIG_MKSWAP \
24 +@BUSYBOX_CONFIG_SWAPOFF \
25 +@BUSYBOX_CONFIG_SWAPON \
27 TITLE
:=ZRAM swap scripts
31 define Package
/zram-swap
/description
32 A script to activate swaping on a compressed zram partition. This
33 could be used to increase the available memory
, by using compressed
40 define Build
/Configure
46 define Package
/zram-swap
/install
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/zram.init
$(1)/etc
/init.d
/zram
51 $(eval
$(call BuildPackage
,zram-swap
))