Network::RawNetwork(3pm)

Network::RawNetwork3pm

Raw /etc/init.d/network module

Usage

  my $networking = new Network::RawNetwork(%vars);
  if($networking->footprint()) {
      $networking->setup();
  }
  my @fileschanged = $networking->files();

Overview

Methods

The following methods exist in this module:

footprint()

This method returns 1 if Raw Networking style networking was discovered on the machine, undef if it was not. The current test checks for the existance of a line in /etc/init.d/network which consists entirely of 'ifconfig lo 127.0.0.1'.

setup_global()

The setup() method sets up the file /$root/etc/init.d/network script to make raw calls to ifconfig and route. This networking will work for any distribution. It also creats an /etc/hostname file, as it seems that distributions that have this footprint also use /etc/hostname to set the system hostname on boot.

setup_interface()

setup_interface() method determines which network setup method will be used for the particular interface. It only adds lines to the file in the event that it is a static address. Otherwise it is assumed that there is a dhcp client script elsewhere.

Author

  Sean Dague <[email protected]>

From systemconfigurator 1.20-1 in Debian 3.0 (Woody). Parsed by carta from the page's man source.