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";