#!/bin/sh

if grep -q usbf /etc/modules.conf; then
  # nothing to do
else
  echo 'alias usbf usb-eth' >> /etc/modules.conf
fi

if grep -q usbf /etc/network/interfaces ; then
  # nothing to do
else
  cat <<EOF >> /etc/network/interfaces
iface usbf inet static
      address 1.1.1.1
      netmask 255.255.255.0
      network 1.1.1.0
      gateway 1.1.1.2

EOF
fi

ln -s /etc/init.d/usbnet /etc/rc2.d/S09usbnet
