summaryrefslogtreecommitdiff
path: root/mount-data/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-01-17 14:36:50 +0100
committerKarel Kočí <cynerd@email.cz>2021-01-17 14:38:05 +0100
commitf07b44c37989517c4406e9f442ebff7beb6360c7 (patch)
tree45f4002b632007e8e363f3a990341df748bb8a08 /mount-data/Makefile
parent09212955cbfd464e80f7ac2ebe87817bcdb37c85 (diff)
downloadopenwrt-personal-pkgs-f07b44c37989517c4406e9f442ebff7beb6360c7.tar.gz
openwrt-personal-pkgs-f07b44c37989517c4406e9f442ebff7beb6360c7.tar.bz2
openwrt-personal-pkgs-f07b44c37989517c4406e9f442ebff7beb6360c7.zip
mount-data: add package back
Diffstat (limited to 'mount-data/Makefile')
-rw-r--r--mount-data/Makefile36
1 files changed, 36 insertions, 0 deletions
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čí <cynerd@email.cz>
+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))