Also remove hard-coded ipv4 default route. Eventually this will be changed to have both ipv4 and ipv6 nameserver, and support IPv4 with the new router. Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev> --- img/app/image/etc/mdev/iface | 17 ----------------- img/app/image/etc/resolv.conf | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/img/app/image/etc/mdev/iface b/img/app/image/etc/mdev/iface index 95f2fa8..3241b4d 100755 --- a/img/app/image/etc/mdev/iface +++ b/img/app/image/etc/mdev/iface @@ -4,22 +4,5 @@ background { importas -Si INTERFACE - - # Our IP is encoded in the NIC-specific portion of the interface's MAC - # address. - backtick -E LOCAL_IP { - awk -PF: " - BEGIN { ex = 1 } - $1 == \"02\" && $2 == \"00\" { - printf \"100.64.%d.%d\\n\", \"0x\" $5, \"0x\" $6 - ex = 0 - } - END { exit ex } - " /sys/class/net/${INTERFACE}/address - } - - if { ip address add ${LOCAL_IP}/32 dev $INTERFACE } if { ip link set $INTERFACE up } - if { ip route add 169.254.0.1 dev $INTERFACE } - ip route add default via 169.254.0.1 dev $INTERFACE } diff --git a/img/app/image/etc/resolv.conf b/img/app/image/etc/resolv.conf index 7fcdf3a..e82c3d0 100644 --- a/img/app/image/etc/resolv.conf +++ b/img/app/image/etc/resolv.conf @@ -1,4 +1,4 @@ # SPDX-License-Identifier: CC0-1.0 # SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is> -nameserver 1.1.1.1 +nameserver 2606:4700:4700::1111 -- 2.51.2