From 205fc7460d8fdff29b670e56b2ca727fb56d52e7 Mon Sep 17 00:00:00 2001 From: olijf Date: Tue, 12 Apr 2016 12:49:38 +0200 Subject: [PATCH] Added symlink to d3dapi --- Makefile | 1 + post-install.sh | 1 - src/script/wifi-switch-netconfig.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6d22833..c89fe98 100644 --- a/Makefile +++ b/Makefile @@ -122,6 +122,7 @@ define Package/wifibox/install $(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/wifibox_init $(1)/etc/init.d/wifibox $(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/dhcpcheck_init $(1)/etc/init.d/dhcpcheck $(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/d3dapi $(1)/$(TGT_LUA_DIR_SUFFIX)/script + $(LN) -s /$(TGT_LUA_DIR_SUFFIX)/script/d3dapi $(1)/bin/d3dapi $(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/signin.sh $(1)/$(TGT_LUA_DIR_SUFFIX)/script $(CP) $(WIFIBOX_BASE_DIR)/script/logrotate-wifibox.conf $(1)/etc/logrotate.d/wifibox.conf diff --git a/post-install.sh b/post-install.sh index 2f4282f..b273471 100644 --- a/post-install.sh +++ b/post-install.sh @@ -55,7 +55,6 @@ if [ $? -gt 0 ]; then cat <<-\EOM >> $IPKG_INSTROOT/root/.profile # DO NOT MODIFY - this block of lines has been added by the wifibox package. alias d='ls -la' - alias d3dapi='/usr/share/lua/wifibox/script/d3dapi' alias encore='ulimit -c unlimited' alias wopkg='opkg -f /usr/share/lua/wifibox/opkg.conf' diff --git a/src/script/wifi-switch-netconfig.sh b/src/script/wifi-switch-netconfig.sh index 6a59613..8589d46 100755 --- a/src/script/wifi-switch-netconfig.sh +++ b/src/script/wifi-switch-netconfig.sh @@ -8,5 +8,5 @@ logger "$BUTTON pressed for $SEEN seconds" if [ "$SEEN" -gt 4 ] then logger "Resetting Wireless" - /usr/share/lua/wifibox/script/d3dapi p=/network/reset r=POST + d3dapi p=/network/reset r=POST fi