From aa61e9dca4ca716617e9486bde5653b852b71d52 Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Mon, 11 Nov 2024 04:27:53 -0500 Subject: [PATCH] wifi: create symlinks in the target directory, otherwise install creates copies of files. --- package/wifi/files/wlancli | 1 - package/wifi/files/wlaninfo | 1 - package/wifi/files/wlanrssi | 1 - package/wifi/files/wlansetup | 1 - package/wifi/files/wlantemp | 1 - package/wifi/wifi.mk | 11 +++++------ 6 files changed, 5 insertions(+), 11 deletions(-) delete mode 120000 package/wifi/files/wlancli delete mode 120000 package/wifi/files/wlaninfo delete mode 120000 package/wifi/files/wlanrssi delete mode 120000 package/wifi/files/wlansetup delete mode 120000 package/wifi/files/wlantemp diff --git a/package/wifi/files/wlancli b/package/wifi/files/wlancli deleted file mode 120000 index 8c4895caf..000000000 --- a/package/wifi/files/wlancli +++ /dev/null @@ -1 +0,0 @@ -wlan \ No newline at end of file diff --git a/package/wifi/files/wlaninfo b/package/wifi/files/wlaninfo deleted file mode 120000 index 8c4895caf..000000000 --- a/package/wifi/files/wlaninfo +++ /dev/null @@ -1 +0,0 @@ -wlan \ No newline at end of file diff --git a/package/wifi/files/wlanrssi b/package/wifi/files/wlanrssi deleted file mode 120000 index 8c4895caf..000000000 --- a/package/wifi/files/wlanrssi +++ /dev/null @@ -1 +0,0 @@ -wlan \ No newline at end of file diff --git a/package/wifi/files/wlansetup b/package/wifi/files/wlansetup deleted file mode 120000 index 8c4895caf..000000000 --- a/package/wifi/files/wlansetup +++ /dev/null @@ -1 +0,0 @@ -wlan \ No newline at end of file diff --git a/package/wifi/files/wlantemp b/package/wifi/files/wlantemp deleted file mode 120000 index 8c4895caf..000000000 --- a/package/wifi/files/wlantemp +++ /dev/null @@ -1 +0,0 @@ -wlan \ No newline at end of file diff --git a/package/wifi/wifi.mk b/package/wifi/wifi.mk index 0916babae..b0dbfdc44 100644 --- a/package/wifi/wifi.mk +++ b/package/wifi/wifi.mk @@ -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