2 # Copyright (C) 2006-2009 OpenWrt.org
3 # Copyright 2010 Vertical Communications
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 include $(INCLUDE_DIR
)/package.mk
16 define Package
/block-mount
/Default
21 define Package
/block-mount
22 $(call Package
/block-mount
/Default
)
23 TITLE
:=Block device mounting and checking
24 DEPENDS
:= +blkid
+swap-utils
27 define Package
/block-mount
/description
28 Scripts used to mount and
check block devices
(filesystems and swap
)
31 define Package
/block-hotplug
32 $(call Package
/block-mount
/Default
)
33 TITLE
:=Automount and autocheck block devices
34 DEPENDS
:=+block-mount
+hotplug2
37 define Package
/block-hotplug
/description
38 Scripts used to automatically
check and mount filesystem and
/or swap
44 define Package
/block-mount
/conffiles
48 define Package
/block-mount
/install
49 $(INSTALL_DIR
) $(1)/etc
/init.d
50 $(INSTALL_BIN
) .
/files
/fstab.init
$(1)/etc
/init.d
/fstab
51 $(INSTALL_DIR
) $(1)/etc
/config
52 $(INSTALL_DATA
) .
/files
/fstab.config
$(1)/etc
/config
/fstab
53 $(INSTALL_DIR
) $(1)/lib
/functions
54 $(INSTALL_DATA
) .
/files
/mount.sh
$(1)/lib
/functions
/
55 $(INSTALL_DATA
) .
/files
/fsck.sh
$(1)/lib
/functions
/
56 $(INSTALL_DATA
) .
/files
/block.sh
$(1)/lib
/functions
/
59 define Package
/block-hotplug
/install
60 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/block
61 $(INSTALL_DATA
) .
/files
/10-swap
$(1)/etc
/hotplug.d
/block
/
62 $(INSTALL_DATA
) .
/files
/20-fsck
$(1)/etc
/hotplug.d
/block
/
63 $(INSTALL_DATA
) .
/files
/40-mount
$(1)/etc
/hotplug.d
/block
/
66 $(eval
$(call BuildPackage
,block-mount
))
67 $(eval
$(call BuildPackage
,block-hotplug
))