par Nectroom » 05 Avr 2002 13:27
je vais mettre ici mes 3 fichiers resolv.conf
<BR>
<BR>celui-ci est dans /etc
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># DO NOT MODIFY THIS FILE! It is updated automatically by the
<BR>
<BR># e-smith server and gateway software. Instead, modify the source
<BR>
<BR># template in the /etc/e-smith/templates directory. For more
<BR>
<BR># information, see <!-- BBCode auto-link start --><a href="http://www.e-smith.org." target="_blank">http://www.e-smith.org.</a><!-- BBCode auto-link end -->
<BR>
<BR>#
<BR>
<BR># copyright (C) 1999, 2000 e-smith, inc.
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>domain nectroom.homelinux.net
<BR>
<BR>nameserver 127.0.0.1
<BR>
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># TEMPLATE END
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>celui-ci est dans /etc/ppp
<BR>
<BR>nameserver 195.74.212.12
<BR>
<BR>nameserver 195.74.193.12
<BR>
<BR>et celui-ci dans /etc/e-smith/templares-custom/etc
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># DO NOT MODIFY THIS FILE! It is updated automatically by the
<BR>
<BR># e-smith server and gateway software. Instead, modify the source
<BR>
<BR># template in the /etc/e-smith/templates directory. For more
<BR>
<BR># information, see <!-- BBCode auto-link start --><a href="http://www.e-smith.org." target="_blank">http://www.e-smith.org.</a><!-- BBCode auto-link end -->
<BR>
<BR>#
<BR>
<BR># copyright (C) 1999, 2000 e-smith, inc.
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>domain nectroom.homelinux.net
<BR>nameserver 127.0.0.1
<BR>
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># TEMPLATE END
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>nameserver 195.74.212.12
<BR>
<BR>nameserver 195.74.193.12
<BR>
<BR>nameserver 195.74.212.12
<BR>
<BR>nameserver 195.74.193.12
<BR>
<BR>et maintenant mon fichier expand-template
<BR>
<BR>#!/usr/bin/perl -w
<BR>
<BR>
<BR>#----------------------------------------------------------------------
<BR>
<BR># copyright (C) 2002 Mitel Networks Corporation
<BR>
<BR>#
<BR>
<BR># This program is free software; you can redistribute it and/or modify
<BR>
<BR># it under the terms of the GNU General Public License as published by
<BR>
<BR># the Free Software Foundation; either version 2 of the License, or
<BR>
<BR># (at your option) any later version.
<BR>
<BR>#
<BR>
<BR># This program is distributed in the hope that it will be useful,
<BR>
<BR># but WITHOUT ANY WARRANTY; without even the implied warranty of
<BR>
<BR># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<BR>
<BR># GNU General Public License for more details.
<BR>
<BR>#
<BR>
<BR># You should have received a copy of the GNU General Public License
<BR>
<BR># along with this program; if not, write to the Free Software
<BR>
<BR># Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<BR>
<BR>#
<BR>
<BR># Technical support for this program is available from Mitel Networks
<BR>
<BR># Please visit our web site <!-- BBCode auto-link start --><a href="http://www.e-smith.com" target="_blank">www.e-smith.com</a><!-- BBCode auto-link end --> for details.
<BR>
<BR>#----------------------------------------------------------------------
<BR>
<BR>
<BR>
<BR>package esmith;
<BR>
<BR>
<BR>
<BR>use strict;
<BR>use Errno;
<BR>
<BR>use esmith::config;
<BR>use esmith::util;
<BR>
<BR>use Getopt::Long;
<BR>
<BR>
<BR>
<BR>my %conf;
<BR>
<BR>tie %conf, 'esmith::config';
<BR>
<BR>
<BR>
<BR>my %options = ();
<BR>
<BR>
<BR>
<BR>GetOptions(%options, 'output_filename=s');
<BR>
<BR>
<BR>
<BR>$options{'template_path'} = $ARGV[0];
<BR>
<BR>
<BR>
<BR>$options{'output_filename'} = $options{'template_path'}
<BR>
<BR> unless ( exists $options{'output_filename'} );
<BR>
<BR>
<BR>
<BR>my %args = (
<BR>
<BR> CONFREF => %conf,
<BR>
<BR> TEMPLATE_PATH => $options{'template_path'},
<BR> OUTPUT_FILENAME => $options{'output_filename'},
<BR>
<BR> );
<BR>
<BR>
<BR>if ( -f $options{'output_filename'} )
<BR>
<BR>{
<BR>
<BR> # If the target file exists, preserve its ownership and mode
<BR>
<BR> use File::stat;
<BR>
<BR>
<BR> my $f = stat($options{'output_filename'} );
<BR>
<BR> %args = (%args, UID => $f->uid, GID => $f->gid, PERMS => $f->mode);
<BR>
<BR>}
<BR>
<BR>
<BR>esmith::util::processTemplate (%args);
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># DO NOT MODIFY THIS FILE! It is updated automatically by the
<BR>
<BR># e-smith server and gateway software. Instead, modify the source
<BR>
<BR># template in the /etc/e-smith/templates directory. For more
<BR>
<BR># information, see <!-- BBCode auto-link start --><a href="http://www.e-smith.org." target="_blank">http://www.e-smith.org.</a><!-- BBCode auto-link end -->
<BR>
<BR>#
<BR>
<BR># copyright (C) 1999, 2000 e-smith, inc.
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>domain nectroom.homelinux.net
<BR>
<BR>nameserver 127.0.0.1
<BR>
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># TEMPLATE END
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># DO NOT MODIFY THIS FILE! It is updated automatically by the
<BR>
<BR># e-smith server and gateway software. Instead, modify the source
<BR>
<BR># template in the /etc/e-smith/templates directory. For more
<BR>
<BR># information, see <!-- BBCode auto-link start --><a href="http://www.e-smith.org." target="_blank">http://www.e-smith.org.</a><!-- BBCode auto-link end -->
<BR>
<BR>#
<BR>
<BR># copyright (C) 1999, 2000 e-smith, inc.
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>domain nectroom.homelinux.net
<BR>
<BR>nameserver 127.0.0.1
<BR>
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># TEMPLATE END
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># DO NOT MODIFY THIS FILE! It is updated automatically by the
<BR>
<BR># e-smith server and gateway software. Instead, modify the source
<BR>
<BR># template in the /etc/e-smith/templates directory. For more
<BR>
<BR># information, see <!-- BBCode auto-link start --><a href="http://www.e-smith.org." target="_blank">http://www.e-smith.org.</a><!-- BBCode auto-link end -->
<BR>
<BR>#
<BR>
<BR># copyright (C) 1999, 2000 e-smith, inc.
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR>domain nectroom.homelinux.net
<BR>
<BR>nameserver 127.0.0.1
<BR>
<BR>
<BR>#------------------------------------------------------------
<BR>
<BR># TEMPLATE END
<BR>
<BR>#------------------------------------------------------------
Région de Liège/Belgique