#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# Instead, modify the source template in the /usr/share/naat/templates
# directory.
# 
# Initial version
# copyright (C) 1999, 2000 e-smith, inc.
#
# Modifying templates
# copyright (C) 2000, 2001 MandrakeSoft, inc.
#------------------------------------------------------------


NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME={
if ( ($DomainName) && ( $DomainName  =~ /\S+/ )  ) {
    $OUT .= "$SystemName.$DomainName\n";
	} elsif  ( ($SystemName) && ( $SystemName  =~ /\S+/ )  ) {
    $OUT .= "$SystemName\n";
	} else {
	$OUT .= "localhost.localdomain\n";
	};
}

{
if ( ($DomainName) && ( $DomainName  =~ /\S+/ )  ) {
    $OUT .= "DOMAINNAME=" .$DomainName. "\n";
	} else {
		$OUT .= "DOMAINNAME=localdomain\n";
	};
}
# Gateway configuration
{
  if ( ($InternetAccessType) && ($InternetAccessType =~ /\S+/) ) {

	if ( !$InternetInterface || $InternetInterface !~ /\S+/ ) {
		$InternetInterface = "eth1";
	} 
	if ($InternetAccessType =~ /lan/i) {
		if ( ($InternetGateway) && ($InternetGateway =~ /\S+/) ) {
			 $OUT .= "GATEWAYDEV=\L$InternetInterface\n"; 
			 $OUT .= "GATEWAY=$InternetGateway\n"; 
		} else {
			 $OUT .= "GATEWAYDEV=\L$InternetInterface\n"; 
			 $OUT .= "GATEWAY=\n"; 
		};
	} elsif ($InternetAccessType =~ /ppp/i) {
                         $OUT .= "GATEWAYDEV=\L$InternetInterface\n";
			 $OUT .= "GATEWAY=\n"; 
	};
  } else {
	$OUT .= "GATEWAYDEV=\n";
	$OUT .= "GATEWAY=\n";
	};
}
