blob: 69f082bbbf04a74d63997243364926ae2c619080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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.1
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_BIN) ./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))
|