Skip to content

Commit f85f173

Browse files
committed
fixes and improved installing using buildenv vars
1 parent 7e6183e commit f85f173

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 4 additions & 4 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.1
5-
PKG_RELEASE:=4
5+
PKG_RELEASE:=5
66

77
PKG_BUILD_DIR:=$(BUILD_DIR)/usb-config-scripts-$(PKG_VERSION)
88
PKG_SOURCE:=$(PKG_VERSION).tar.gz
@@ -43,9 +43,9 @@ endef
4343
define Package/usb-config-scripts-librarybox/postinst
4444
#!/bin/sh
4545
echo "Linking used modules"
46-
ln -s /opt/autocfg/modules.available/*openwrt* /opt/autocfg/modules.enabled
47-
ln -s /opt/autocfg/modules.available/*librarybox* /opt/autocfg/modules.enabled
48-
ln -s /opt/autocfg/modules.available/50_piratebox_hostname.sh /opt/autocfg/modules.enabled
46+
ln -s ../modules.available/*openwrt* $$PKG_ROOT/opt/autocfg/modules.enabled
47+
ln -s ../modules.available/*librarybox* $$PKG_ROOT/opt/autocfg/modules.enabled
48+
ln -s ../modules.available/50_piratebox_hostname.sh $$PKG_ROOT/opt/autocfg/modules.enabled
4949
endef
5050

5151
define Build/Compile

files/etc/init.d/autocfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ start() {
1212
$work_folder/bin/auto_config.sh >> /mnt/usb/apply_config.log
1313
local change_rc=$?
1414

15-
if [ "$change_rc" == "0"] ; then
15+
if [ "$change_rc" == "0" ] ; then
1616
echo "Changes by auto-config" >> /mnt/usb/apply_config.log
1717
echo "Initiates reboot" >> /mnt/usb/apply_config.log
1818
reboot
@@ -28,4 +28,5 @@ reset () {
2828
}
2929

3030
stop() {
31+
echo ""
3132
}

0 commit comments

Comments
 (0)