From 974bc33a89f8b483c75ea9ccc3735731cd4a7ec4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 27 Jul 2023 23:16:32 +0200 Subject: [PATCH] Add intel network driver to the installer --- deploy.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deploy.sh b/deploy.sh index ef3cac7..6dbeb99 100755 --- a/deploy.sh +++ b/deploy.sh @@ -26,6 +26,7 @@ else bootPath="/media/boot"; dataPath="/media/data"; setupLabel="winiso"; + intelNetworkArchive="./$buildDir/intelNetwork.zip"; marvellNetworkArchive="./$buildDir/marvellNetwork.zip"; gitArchive="$(realpath "./$buildDir/git.msi")"; pwshArchive="./$buildDir/pwsh.zip"; @@ -34,6 +35,11 @@ else mkdir -p "$buildDir"; cp -r winfs/* "$overlayDir"; + if [ ! -f "$intelNetworkArchive" ] + then + curl -L "https://dlcdnets.asus.com/pub/ASUS/mb/04LAN/DRV_LAN_Intel_I211_UWD_TP_W10_64_VER12151841_20190306R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA" -o "$intelNetworkArchive"; + fi; + if [ ! -f "$marvellNetworkArchive" ] then curl -L "https://dlcdnets.asus.com/pub/ASUS/mb/04LAN/DRV_LAN_Marvell_TP_TSD_W11_64_V3130_20211118R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA" -o "$networkDriverArchive"; @@ -50,6 +56,11 @@ else fi; mkdir -p "$overlayDir/drivers"; + tempDir="$(mktemp -d)"; + unzip "$intelNetworkArchive" -d "$tempDir"; + cp -r "$tempDir/x64" "$overlayDir/drivers/IntelNetwork"; + rm -rf "$tempDir"; + tempDir="$(mktemp -d)"; unzip "$marvellNetworkArchive" -d "$tempDir"; cp -r "$tempDir/x64" "$overlayDir/drivers/MarvellNetwork";