Update S30eth

Fix typo that creates wrong resolve.conf file and therefore dns doesn't work.
This commit is contained in:
XiTatiON
2025-03-29 11:52:48 +11:00
committed by GitHub
parent 6005bb1b8d
commit 8d67ecd6a0

View File

@@ -29,7 +29,7 @@ start() {
arping -Dqc2 -Ieth0 $addr || continue
ip a add $inet brd + dev eth0
ip r add default via $gw dev eth0
cat > /etc/resolve.conf << EOF
cat > /etc/resolv.conf << EOF
nameserver $gw
nameserver 8.8.8.8
nameserver 114.114.114.114
@@ -112,4 +112,4 @@ EOF
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
esac