home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 January / PCpro_2005_01.ISO / isolinux / all.rdz / initrd / etc / pcmcia / network.opts < prev    next >
Encoding:
Text File  |  2004-03-24  |  2.1 KB  |  68 lines

  1. # Network adapter configuration
  2. #
  3. # The address format is "scheme,socket,instance,hwaddr".
  4. #
  5. # Note: the "network address" here is NOT the same as the IP address.
  6. # See the Networking HOWTO.  In short, the network address is the IP
  7. # address masked by the netmask.
  8. #
  9. case "$ADDRESS" in
  10. *,*,*,*)
  11.     INFO="Sample private network setup"
  12.     # Transceiver selection, for some cards -- see 'man ifport'
  13.     IF_PORT=""
  14.     # Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
  15.     BOOTP="n"
  16.     # Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
  17.     DHCP="n"
  18.     # If you need to explicitly specify a hostname for DHCP requests
  19.     DHCP_HOSTNAME=""
  20.     # Host's IP address, netmask, network address, broadcast address
  21.     IPADDR=""
  22.     NETMASK="255.255.255.0"
  23.     NETWORK="10.0.1.0"
  24.     BROADCAST="10.0.1.255"
  25.     # Gateway address for static routing
  26.     GATEWAY="10.0.1.1"
  27.     # Things to add to /etc/resolv.conf for this interface
  28.     DOMAIN=""
  29.     SEARCH=""
  30.     DNS_1=""
  31.     DNS_2=""
  32.     DNS_3=""
  33.     # NFS mounts, should be listed in /etc/fstab
  34.     MOUNTS=""
  35.     # If you need to override the interface's MTU...
  36.     MTU=""
  37.     # For IPX interfaces, the frame type and network number
  38.     IPX_FRAME=""
  39.     IPX_NETNUM=""
  40.     # Extra stuff to do after setting up the interface
  41.     start_fn () { return; }
  42.     # Extra stuff to do before shutting down the interface
  43.     stop_fn () { return; }
  44.     # Card eject policy options
  45.     NO_CHECK=n
  46.     NO_FUSER=n
  47.     ;;
  48. esac
  49.  
  50. # This is used to hook into Red Hat's network configuration tools.
  51. # You can delete it if that isn't desired.  We look for network
  52. # options in /etc/sysconfig/network-scripts if it appears that the
  53. # interface can't be set up using settings given higher up in this
  54. # file.
  55.  
  56. is_true $PUMP || is_true $BOOTP || is_true $DHCP ||
  57. [ -x /proc/sys/kernel/hotplug ] || \
  58. if [ -z "$IPADDR" -a -f /etc/sysconfig/network-scripts/ifcfg-$2 ] ; then
  59.     INFO="Red Hat netconf setup"
  60.     start_fn () {
  61.     . /etc/sysconfig/network-scripts/ifcfg-$1
  62.     if [ "$ONBOOT" = "yes" ] ; then log /sbin/ifup $1 ; fi
  63.     }
  64.     stop_fn () {
  65.     log /sbin/ifdown $1
  66.     }
  67. fi
  68.