Skip to content

Commit b8d38ed

Browse files
committed
added first version of librarybox customization stuff
1 parent bb1102f commit b8d38ed

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

Makefile

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=usb-config-scripts
44
PKG_VERSION:=0.1.0
5-
PKG_RELEASE:=2
5+
PKG_RELEASE:=3
66

77
PKG_BUILD_DIR:=$(BUILD_DIR)/usb-config-scripts-$(PKG_VERSION)
88
PKG_SOURCE:=$(PKG_VERSION).tar.gz
@@ -24,17 +24,27 @@ define Package/usb-config-scripts
2424
MAINTAINER:=Matthias Strubel <matthias.strubel@aod-rpg.de>
2525
endef
2626

27+
define Package/usb-config-scripts-librarybox
28+
$(call Package/usb-config-scripts)
29+
TITLE+= with customizations for LibraryBox
30+
endef
31+
2732
define Package/usb-config-scripts/description
2833
Helps easier configuration via simple files on USB Stick for i.e. LibraryBox
2934
endef
3035

3136

37+
38+
3239
define Package/usb-config-scripts/postinst
33-
#!/bin/sh
40+
endef
3441

35-
if ! grep -q $($$PKG_ROOT)/etc/rc.local /opt/autocfg/bin/auto_config.sh ; then
36-
echo "#/opt/autocfg/bin/auto_config_startup.sh" >> $($$PKG_ROOT)/etc/rc.local
37-
fi
42+
43+
define Package/usb-config-scripts-librarybox/postinst
44+
#!/bin/sh
45+
ln -s /opt/autocfg/modules.available/*openwrt* /opt/autocfg/modules.enabled
46+
ln -s /opt/autocfg/modules.available/*librarybox* /opt/autocfg/modules.enabled
47+
ln -s /opt/autocfg/modules.available/50_piratebox_hostname.sh /opt/autocfg/modules.enabled
3848
endef
3949

4050
define Build/Compile
@@ -57,4 +67,9 @@ define Package/usb-config-scripts/install
5767
$(INSTALL_BIN) $(PKG_BUILD_DIR)/modules.available/* $(1)/opt/autocfg/modules.available/
5868
endef
5969

70+
71+
Package/usb-config-scripts-librarybox/install=Package/usb-config-scripts/install
72+
6073
$(eval $(call BuildPackage,usb-config-scripts))
74+
$(eval $(call BuildPackage,usb-config-scripts-librarybox))
75+

0 commit comments

Comments
 (0)