From 9b95cf8f80e31fe4b4b439b685a4458311df4a49 Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 8 Jan 2024 12:22:03 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index ac58099..ef9a26a 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -246,13 +246,17 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow os.system('echo "Not copied LAN-WLAN, not recommended for this image."') elif os.path.exists('/etc/bhversion') and os.path.exists('%s/usr/lib/enigma2/python/Plugins/PLi' % (media, target)): os.system('echo "Not copied LAN-WLAN, not recommended for this image."') + elif getCPUtype() == "ARMv7" and getBoxHostName() == "vuultimo4k" or getBoxHostName() == "vusolo4k" or getBoxHostName() == "vuuno4k" or getBoxHostName() == "vuuno4kse" or getBoxHostName() == "vuduo4k" or getBoxHostName() == "vuduo4kse" or getBoxHostName() == "vuzero4k": + if os.path.exists('/etc/wl.conf.wlan3'): + cmd = 'cp -af /etc/wl.conf.wlan3 %s/ImageBoot/%s/etc/wl.conf.wlan3 > /dev/null 2>&1' % (media, target) + rc = os.system(cmd) else: if os.path.exists('/etc/wpa_supplicant.wlan0.conf'): - cmd = 'cp -af /etc/wpa_supplicant.wlan0.conf %s/ImageBoot/%s/etc/wpa_supplicant.wlan0.conf > /dev/null 2>&1' % (media, target) - rc = os.system(cmd) + #cmd = 'cp -af /etc/wpa_supplicant.wlan0.conf %s/ImageBoot/%s/etc/wpa_supplicant.wlan0.conf > /dev/null 2>&1' % (media, target) + #rc = os.system(cmd) if os.path.exists('/etc/network/interfaces'): - cmd = 'cp -af /etc/network/interfaces %s/ImageBoot/%s/etc/network/interfaces > /dev/null 2>&1' % (media, target) - rc = os.system(cmd) + #cmd = 'cp -af /etc/network/interfaces %s/ImageBoot/%s/etc/network/interfaces > /dev/null 2>&1' % (media, target) + #rc = os.system(cmd) if os.path.exists('/etc/wpa_supplicant.conf'): cmd = 'cp -af /etc/wpa_supplicant.conf %s/ImageBoot/%s/etc/wpa_supplicant.conf > /dev/null 2>&1' % (media, target) rc = os.system(cmd)