X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Fnetwork-configure;h=8a7e72127b5a319e1381350452abbc5898915d1f;hp=05d6034e7550c8603a8aac8d13d7958bf7a4c80d;hb=725a73b1defd5784861e0f6876b27c570ee7303f;hpb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af diff --git a/local/network-configure b/local/network-configure index 05d6034..8a7e721 100755 --- a/local/network-configure +++ b/local/network-configure @@ -17,12 +17,15 @@ sudo install -m 644 -o root -g root /dev/stdin \ /etc/hosts sudo install -m 644 -o root -g root /dev/stdin \ /etc/resolv.conf <<-EOF + domain ${local_domainname} search ${local_host#*.} nameserver 127.0.0.1 #nameserver ${local_host_nameserver} EOF m4 \ --define=LOCAL_IPV4=$local_ipv4 \ + --define=LOCAL_GATEWAY=$local_gateway \ + --define=LOCAL_NETMASK=$local_netmask \ <"$tool"/etc/network/interfaces.m4 | sudo install -m 640 -o root -g root /dev/stdin \ /etc/network/interfaces