From bf24e13ee81a77aa39e2af11f4a778c7bef39f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Aug 2020 16:19:39 +0200 Subject: mount-data: create package --- mount-data/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mount-data/Makefile (limited to 'mount-data/Makefile') diff --git a/mount-data/Makefile b/mount-data/Makefile new file mode 100644 index 0000000..3af25b5 --- /dev/null +++ b/mount-data/Makefile @@ -0,0 +1,36 @@ +# +## Copyright (C) 2020 Karel Kočí +# +## This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# # +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=mount-data +PKG_VERSION:=1.0.0 +PKG_MAINTAINER:=Karel Kočí +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/mount-data + TITLE:=Mount filesystem to /data directory +endef + +define Package/mount-data/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_DATA) ./files/init $(1)/etc/init.d/data +endef + +Build/Compile:=: + +define Package/mount-data/postinst +[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/data enable +endef + +define Package/mount-data/prerm +[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/data disable +endef + +$(eval $(call BuildPackage,mount-data)) -- cgit v1.2.3