linkpi_firmware_history/rootfs/link/shell/netManager.sh

20 lines
496 B
Bash
Raw Normal View History

2024-02-15 22:07:35 +01:00
. /link/shell/util/hardware.sh
/link/shell/setMac.sh
sleep 1
/link/shell/setNetwork.sh
sleep 2
/link/bin/WifiCtrl &
if [ -d /sys/class/net/eth1 ]; then
/link/shell/setMac2.sh
2024-02-15 22:07:48 +01:00
if [ -d /sys/class/net/eth2 ];then
if [ "$fac" == "ENC2" ] || [ "$fac" == "ENC2V2" ] || [ "$fac" == "ENC2_SS528" ]; then
/link/shell/setNetwork2.sh eth2
fi
else
if [ "$fac" != "ENC2" ] && [ "$fac" != "ENC2V2" ] && [ "$fac" != "ENC2V2_SS528" ]; then
/link/shell/setNetwork2.sh eth1
fi
fi
2024-02-15 22:07:35 +01:00
fi