mirror of https://github.com/OpenIPC/wiki.git
parent
11e0341fe4
commit
d138b90782
|
@ -68,36 +68,10 @@ If there are unknown USB devices in the computer, the following drivers need to
|
||||||
(https://github.com/user-attachments/files/16829005/corechip-sr9900-usb20-to-fast-ethernet-adapter-1750095.zip)
|
(https://github.com/user-attachments/files/16829005/corechip-sr9900-usb20-to-fast-ethernet-adapter-1750095.zip)
|
||||||
|
|
||||||
in windows:
|
in windows:
|
||||||
Save attached Auto_set_Mario_CDX.bat and run as administrator.
|
Save attached and unzip file ( Auto_set_Mario_CDX.bat )and run as administrator.
|
||||||
[Uploading Auto_Set_Mario_CDC.bat@echo off
|
|
||||||
setlocal
|
|
||||||
|
|
||||||
echo Detecting Ethernet adapter with description containing "Searching OpenIPC Mario AIO device CDC net adapter"...
|
[Auto_Set_Mario_CDC.zip](https://github.com/user-attachments/files/17010487/Auto_Set_Mario_CDC.zip)
|
||||||
|
|
||||||
:: Query network adapters and find the one with "Corechip SR9900" in the description
|
|
||||||
for /f "tokens=2 delims==" %%A in ('wmic nic where "Description like '%%Corechip SR9900%%' and NetConnectionID is not null" get NetConnectionID /value 2^>nul') do (
|
|
||||||
set "EthernetName=%%A"
|
|
||||||
)
|
|
||||||
|
|
||||||
:: Check if the EthernetName variable was set
|
|
||||||
if defined EthernetName (
|
|
||||||
echo Ethernet adapter found: "%EthernetName%"
|
|
||||||
echo Configuring IPv4 address...
|
|
||||||
|
|
||||||
:: Set the static IPv4 address and subnet mask
|
|
||||||
netsh interface ip set address name="%EthernetName%" static 192.168.1.11 255.255.255.0
|
|
||||||
if %errorlevel% equ 0 (
|
|
||||||
echo Successfully set the IP address to 192.168.1.11 and subnet mask to 255.255.255.0
|
|
||||||
) else (
|
|
||||||
echo Failed to set the IP address. Please check permissions or install Driver for it.
|
|
||||||
)
|
|
||||||
) else (
|
|
||||||
echo No Ethernet adapter with "Mario AIO device" found.
|
|
||||||
)
|
|
||||||
|
|
||||||
endlocal
|
|
||||||
pause
|
|
||||||
…]()
|
|
||||||
|
|
||||||
|
|
||||||
or setting manually as follows:
|
or setting manually as follows:
|
||||||
|
|
Loading…
Reference in New Issue