Skip to content

Commit 87047d8

Browse files
committed
upgrade to 0.1.1 with init.d file included
1 parent b8d38ed commit 87047d8

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=usb-config-scripts
4-
PKG_VERSION:=0.1.0
5-
PKG_RELEASE:=3
4+
PKG_VERSION:=0.1.1
5+
PKG_RELEASE:=1
66

77
PKG_BUILD_DIR:=$(BUILD_DIR)/usb-config-scripts-$(PKG_VERSION)
88
PKG_SOURCE:=$(PKG_VERSION).tar.gz
99
PKG_SOURCE_URL:=https://github.com/MaStr/usb-config-scripts/archive/
10-
PKG_MD5SUM:=fe211e1e37530673600f31b1391a79cc
10+
PKG_MD5SUM:=e119f6aa1cf53c73ae88b2b61cc61f60
1111
PKG_CAT:=zcat
1212

1313

@@ -42,6 +42,7 @@ endef
4242

4343
define Package/usb-config-scripts-librarybox/postinst
4444
#!/bin/sh
45+
echo "Linking used modules"
4546
ln -s /opt/autocfg/modules.available/*openwrt* /opt/autocfg/modules.enabled
4647
ln -s /opt/autocfg/modules.available/*librarybox* /opt/autocfg/modules.enabled
4748
ln -s /opt/autocfg/modules.available/50_piratebox_hostname.sh /opt/autocfg/modules.enabled
@@ -56,19 +57,19 @@ endef
5657

5758
define Package/usb-config-scripts/install
5859
$(INSTALL_DIR) $(1)/opt/autocfg
59-
$(INSTALL_DIR) $(1)/opt/autocfg/{bin,conf}
60-
$(INSTALL_DIR) $(1)/opt/autocfg/lib
61-
$(INSTALL_DIR) $(1)/opt/autocfg/modules.available
62-
$(INSTALL_DIR) $(1)/opt/autocfg/modules.enabled
60+
$(INSTALL_DIR) $(1)/opt/autocfg/{bin,conf,lib}
61+
$(INSTALL_DIR) $(1)/opt/autocfg/modules.{available,enabled}
62+
$(INSTALL_DIR) $(1)/etc/init.d
6363

64+
$(INSTALL_BIN) ./files/etc/init.d/autocfg $(1)/etc/init.d/
6465
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/opt/autocfg/bin/
6566
$(INSTALL_BIN) $(PKG_BUILD_DIR)/conf/* $(1)/opt/autocfg/conf/
6667
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/* $(1)/opt/autocfg/lib/
6768
$(INSTALL_BIN) $(PKG_BUILD_DIR)/modules.available/* $(1)/opt/autocfg/modules.available/
6869
endef
6970

7071

71-
Package/usb-config-scripts-librarybox/install=Package/usb-config-scripts/install
72+
Package/usb-config-scripts-librarybox/install:=Package/usb-config-scripts/install
7273

7374
$(eval $(call BuildPackage,usb-config-scripts))
7475
$(eval $(call BuildPackage,usb-config-scripts-librarybox))

files/etc/init.d/autocfg

Whitespace-only changes.

0 commit comments

Comments
 (0)