Artifact 19614066f25f0e415d8e0fbd34fe8d91ea55b238:
- Executable file build/qemu/root/bin/init-networking — part of check-in [afc876941b] at 2020-06-29 14:58:52 on branch trunk — Updated to use an initramfs to allow more flexible mounting options (user: rkeene, size: 297) [annotate] [blame] [check-ins using]
#! /bin/tclkit
package require tuapi
::tuapi::ifconfig eth0 address 10.0.2.15 netmask 255.255.255.0 flags {BROADCAST MULTICAST UP}
::tuapi::syscall::route add 0.0.0.0 0.0.0.0 gateway 10.0.2.2 dev eth0
file mkdir /etc
set fd [open /etc/resolv.conf w]
puts $fd "nameserver 10.0.2.3"
close $fd