diff --git a/install-party/configure_borne b/install-party/configure_borne index 79d44cb7..88cd30f2 100755 --- a/install-party/configure_borne +++ b/install-party/configure_borne @@ -46,6 +46,9 @@ then # génération du script echo "Création du script de reconfiguration" cat > $DIR/boot.sh < /tmp/resolv.conf echo "nameserver 138.231.136.6" >> /tmp/resolv.conf @@ -53,8 +56,7 @@ echo "nameserver 138.231.136.10" >> /tmp/resolv.conf # alias pour le dns echo "127.0.0.1 localhost" > /etc/hosts -echo "138.231.136.9 debian.ens-cachan.fr" >> /etc/hosts -echo "138.231.136.9 ftp.crihan.fr" >> /etc/hosts +echo "138.231.136.7 debian.ens-cachan.fr ftp.crihan.fr" >> /etc/hosts # dns killall dnsmasq 2> /dev/null @@ -64,6 +66,10 @@ killall dnsmasq 2> /dev/null echo "start 192.168.0.10" > /tmp/udhcpd. echo "end 192.168.0.254" >> /tmp/udhcpd.conf echo "interface vlan1" >> /tmp/udhcpd.conf +echo "opt dns 192.168.0.1 138.231.136.6" >> /tmp/udhcpd.conf +echo "option dns 138.231.136.10" >> /tmp/udhcpd.conf +echo "opt router 192.168.0.1" >> /tmp/udhcpd.conf +echo "opt netmask 255.255.255.0" >> /tmp/udhcpd.conf killall udhcpd 2> /dev/null /usr/sbin/udhcpd /tmp/udhcpd.conf @@ -88,7 +94,7 @@ fi # Reconfiguration du firewall -if [[ "$1" == "--firewall" ]] +if [[ "$1" == "--firewall" ]] || [[ "$1" == "--macs" ]] then # génération du firewall echo "Génération du firewall"