#!/bin/sh # This script configures the network environment # Use DHCP to get an IP... if [ "$USE_DHCP" = "YES" -o "$USE_DHCP" = "yes" ]; then if [ ! -z "$MODULE" ]; then modprobe $MODULE fi # configure interfaces /bin/cp /etc/network/interfaces.dhcp /etc/network/interfaces # ...or use a static IP. else # configure interfaces /bin/cp /etc/network/interfaces.$STATIC_LAN /etc/network/interfaces fi