petits changements de dernire minute
darcs-hash:20041111070636-4ec08-67cb8478060bb3358af2a5a6a77cbe352f53c049.gz
This commit is contained in:
parent
34106a456c
commit
e6d4b391ec
1 changed files with 9 additions and 3 deletions
|
@ -46,6 +46,9 @@ then
|
||||||
# génération du script
|
# génération du script
|
||||||
echo "Création du script de reconfiguration"
|
echo "Création du script de reconfiguration"
|
||||||
cat > $DIR/boot.sh <<EOF
|
cat > $DIR/boot.sh <<EOF
|
||||||
|
# ajout de la route
|
||||||
|
route add default gw 138.231.136.4 dev vlan0
|
||||||
|
|
||||||
# résolution de noms
|
# résolution de noms
|
||||||
echo "search crans.org" > /tmp/resolv.conf
|
echo "search crans.org" > /tmp/resolv.conf
|
||||||
echo "nameserver 138.231.136.6" >> /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
|
# alias pour le dns
|
||||||
echo "127.0.0.1 localhost" > /etc/hosts
|
echo "127.0.0.1 localhost" > /etc/hosts
|
||||||
echo "138.231.136.9 debian.ens-cachan.fr" >> /etc/hosts
|
echo "138.231.136.7 debian.ens-cachan.fr ftp.crihan.fr" >> /etc/hosts
|
||||||
echo "138.231.136.9 ftp.crihan.fr" >> /etc/hosts
|
|
||||||
|
|
||||||
# dns
|
# dns
|
||||||
killall dnsmasq 2> /dev/null
|
killall dnsmasq 2> /dev/null
|
||||||
|
@ -64,6 +66,10 @@ killall dnsmasq 2> /dev/null
|
||||||
echo "start 192.168.0.10" > /tmp/udhcpd.
|
echo "start 192.168.0.10" > /tmp/udhcpd.
|
||||||
echo "end 192.168.0.254" >> /tmp/udhcpd.conf
|
echo "end 192.168.0.254" >> /tmp/udhcpd.conf
|
||||||
echo "interface vlan1" >> /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
|
killall udhcpd 2> /dev/null
|
||||||
/usr/sbin/udhcpd /tmp/udhcpd.conf
|
/usr/sbin/udhcpd /tmp/udhcpd.conf
|
||||||
|
|
||||||
|
@ -88,7 +94,7 @@ fi
|
||||||
|
|
||||||
# Reconfiguration du firewall
|
# Reconfiguration du firewall
|
||||||
|
|
||||||
if [[ "$1" == "--firewall" ]]
|
if [[ "$1" == "--firewall" ]] || [[ "$1" == "--macs" ]]
|
||||||
then
|
then
|
||||||
# génération du firewall
|
# génération du firewall
|
||||||
echo "Génération du firewall"
|
echo "Génération du firewall"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue