X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=local%2Fnetwork-configure;h=5b412c6308ad5c9613a10e794e9f3eb504155ac2;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hp=d70b6ffc9dd33eabcd03f0ece9ba81f0c44e7caa;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d;p=lhc%2Fateliers.git diff --git a/local/network-configure b/local/network-configure index d70b6ff..5b412c6 100755 --- a/local/network-configure +++ b/local/network-configure @@ -10,15 +10,15 @@ grep -q " $vm\$" /etc/hosts || sudo install -m 644 -o root -g root /dev/stdin \ /etc/hosts <<-EOF $(cat /etc/hosts) - 127.0.0.1 $vm_fqdn $vm + 127.0.0.1 $local_fqdn $vm EOF sudo install -m 644 -o root -g root /dev/stdin \ /etc/resolv.conf <<-EOF - search ${vm_host#*.} - nameserver ${vm_host_nameserver} + search ${local_host#*.} + nameserver ${local_host_nameserver} EOF m4 \ - --define=VM_IPV4=$vm_ipv4 \ + --define=LOCAL_IPV4=$local_ipv4 \ <"$tool"/etc/network/interfaces.m4 | sudo install -m 640 -o root -g root /dev/stdin \ /etc/network/interfaces