From fe7ff63c4c031abd795ceb92de11cfcb02fa7be1 Mon Sep 17 00:00:00 2001 From: bernat Date: Sun, 12 Dec 2004 23:38:52 +0100 Subject: [PATCH] Preparation a la mise en place du DHCP pour le wifi sur nectaris darcs-hash:20041212223852-d1718-c8f53b90ebf417763fe44d124c4764411de4aab9.gz --- gestion/gen_confs/dhcpd.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/dhcpd.py b/gestion/gen_confs/dhcpd.py index d0e49501..97da5c13 100755 --- a/gestion/gen_confs/dhcpd.py +++ b/gestion/gen_confs/dhcpd.py @@ -76,8 +76,14 @@ subnet %(network)s netmask %(netmask)s { # Si =1 ralera (chaine warnings) si machines hors zone trouvée # Si =0 ralera seulement si réseau vide verbose = 1 - - restart_cmd = '/etc/init.d/dhcp restart' + + if hostname == 'zamok': + restart_cmd = '/etc/init.d/dhcp restart' + elif hostname == 'nectaris': + # restart_cmd = 'kill $(cat /var/run/dhcpd.pid) ; sleep 1 ; dhcpd $(stripcom /etc/dhcpd.interfaces)' + restart_cmd = 'true' + else: + restart_cmd = 'true' ######################################FIN PARTIE DE CONFIGURATION