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
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/zram-swap
24 DEPENDS
:=+kmod-zram
+!BUSYBOX_CONFIG_MKSWAP
:swap-utils
+!BUSYBOX_CONFIG_SWAPONOFF
:block-mount
25 TITLE
:=ZRAM swap scripts
29 define Package
/zram-swap
/description
30 A script to activate swaping on a compressed zram partition. This
31 could be used to increase the available memory
, by using compressed
38 define Build
/Configure
44 define Package
/zram-swap
/install
45 $(INSTALL_DIR
) $(1)/etc
/init.d
46 $(INSTALL_BIN
) .
/files
/zram.init
$(1)/etc
/init.d
/zram
49 $(eval
$(call BuildPackage
,zram-swap
))