Add intel network driver to the installer

This commit is contained in:
Manuel Thalmann 2023-07-27 23:16:32 +02:00
parent a199dc30b2
commit 974bc33a89

View file

@ -26,6 +26,7 @@ else
bootPath="/media/boot"; bootPath="/media/boot";
dataPath="/media/data"; dataPath="/media/data";
setupLabel="winiso"; setupLabel="winiso";
intelNetworkArchive="./$buildDir/intelNetwork.zip";
marvellNetworkArchive="./$buildDir/marvellNetwork.zip"; marvellNetworkArchive="./$buildDir/marvellNetwork.zip";
gitArchive="$(realpath "./$buildDir/git.msi")"; gitArchive="$(realpath "./$buildDir/git.msi")";
pwshArchive="./$buildDir/pwsh.zip"; pwshArchive="./$buildDir/pwsh.zip";
@ -34,6 +35,11 @@ else
mkdir -p "$buildDir"; mkdir -p "$buildDir";
cp -r winfs/* "$overlayDir"; 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" ] if [ ! -f "$marvellNetworkArchive" ]
then 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"; 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; fi;
mkdir -p "$overlayDir/drivers"; mkdir -p "$overlayDir/drivers";
tempDir="$(mktemp -d)";
unzip "$intelNetworkArchive" -d "$tempDir";
cp -r "$tempDir/x64" "$overlayDir/drivers/IntelNetwork";
rm -rf "$tempDir";
tempDir="$(mktemp -d)"; tempDir="$(mktemp -d)";
unzip "$marvellNetworkArchive" -d "$tempDir"; unzip "$marvellNetworkArchive" -d "$tempDir";
cp -r "$tempDir/x64" "$overlayDir/drivers/MarvellNetwork"; cp -r "$tempDir/x64" "$overlayDir/drivers/MarvellNetwork";