From 9fdcd3dbe69e6fabaf334d59c78fd44f981d14cd Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 27 Jul 2023 22:08:05 +0200 Subject: [PATCH] Add network driver to the installer --- deploy.sh | 8 ++++++++ winfs/Scripts/Startup.cmd | 1 + 2 files changed, 9 insertions(+) diff --git a/deploy.sh b/deploy.sh index c133b4b..38b721e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -26,6 +26,7 @@ else bootPath="/media/boot"; dataPath="/media/data"; setupLabel="winiso"; + networkDriverArchive="./$buildDir/network.zip"; gitArchive="$(realpath "./$buildDir/git.msi")"; pwshArchive="./$buildDir/pwsh.zip"; editionField="Edition ID"; @@ -33,6 +34,11 @@ else mkdir -p "$buildDir"; cp -r winfs/* "$overlayDir"; + if [ ! -f "$networkDriverArchive" ] + 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"; + fi; + if [ ! -f "$gitArchive" ] then curl -L "https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/PortableGit-2.41.0-64-bit.7z.exe" -o "$gitArchive"; @@ -43,6 +49,8 @@ else curl -L "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.zip" -o "$pwshArchive"; fi; + unzip "$networkDriverArchive" -d "$overlayDir/drivers/Network"; + mkdir -p "$overlayDir/git"; pushd "$overlayDir/git" > /dev/null; 7z x "$gitArchive"; diff --git a/winfs/Scripts/Startup.cmd b/winfs/Scripts/Startup.cmd index 6fc43fe..83a3cdb 100644 --- a/winfs/Scripts/Startup.cmd +++ b/winfs/Scripts/Startup.cmd @@ -1,4 +1,5 @@ @echo off wpeutil SetKeyboardLayout 0807:00000807 +drvload X:\drivers\Network\x64\win10-win11\aqnic650.inf echo Launching Startup Script... start X:\PowerShell\pwsh.exe -NoExit -ExecutionPolicy bypass -file "X:\Scripts\Startup.ps1"