From 41b8c3878d2ec958ee369dedef96c163dcf39476 Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 26 Aug 2010 16:24:59 +0200 Subject: [PATCH] dhcpcd config --- pyneo-rootfs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index e17a05a..af592f3 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -155,6 +155,27 @@ log-queries clear-on-reload domain-needed __END__ + + cat > $ROOTDIR/etc/dhcpcd.conf << __END__ +hostname + +option domain_name_servers, domain_name, domain_search, host_name +option classless_static_routes + +option ntp_servers + +option interface_mtu + +require dhcp_server_identifier + +nohook lookup-hostname + +interface usb0 + static ip_address=192.168.0.202/24 + static routers=192.168.0.200 + static domain_name_servers=192.168.0.200 +__END__ + # pyneo-resolvconf installs new resolv.conf - revert that change cp /etc/resolv.conf $ROOTDIR/etc/resolv.conf fi