Add network driver to the installer
This commit is contained in:
parent
70645bf34c
commit
9fdcd3dbe6
2 changed files with 9 additions and 0 deletions
|
@ -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";
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue