Skip to content

Commit

Permalink
wifi: create symlinks in the target directory, otherwise install crea…
Browse files Browse the repository at this point in the history
…tes copies of files.
  • Loading branch information
themactep committed Nov 11, 2024
1 parent 78b6e29 commit aa61e9d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion package/wifi/files/wlancli

This file was deleted.

1 change: 0 additions & 1 deletion package/wifi/files/wlaninfo

This file was deleted.

1 change: 0 additions & 1 deletion package/wifi/files/wlanrssi

This file was deleted.

1 change: 0 additions & 1 deletion package/wifi/files/wlansetup

This file was deleted.

1 change: 0 additions & 1 deletion package/wifi/files/wlantemp

This file was deleted.

11 changes: 5 additions & 6 deletions package/wifi/wifi.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ define WIFI_INSTALL_TARGET_CMDS

$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin/
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlan
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlancli
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlanrssi
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlantemp
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlaninfo
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(WIFI_PKGDIR)/files/wlansetup

ln -sr $(TARGET_DIR)/usr/sbin/wlan $(TARGET_DIR)/usr/sbin/wlancli
ln -sr $(TARGET_DIR)/usr/sbin/wlan $(TARGET_DIR)/usr/sbin/wlaninfo
ln -sr $(TARGET_DIR)/usr/sbin/wlan $(TARGET_DIR)/usr/sbin/wlanrssi
ln -sr $(TARGET_DIR)/usr/sbin/wlan $(TARGET_DIR)/usr/sbin/wlansetup
ln -sr $(TARGET_DIR)/usr/sbin/wlan $(TARGET_DIR)/usr/sbin/wlantemp

$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/network/interfaces.d
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/network/interfaces.d/ $(WIFI_PKGDIR)/files/wlan0
Expand Down

0 comments on commit aa61e9d

Please sign in to comment.