Diff for /elwix/config/etc/uboot/rc.d/010.lan.stop between versions 1.2 and 1.3

version 1.2, 2014/09/15 19:06:52 version 1.3, 2017/02/13 16:52:47
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
   
IFACE="fxp0"IFACE="em0"
   
 MEDIA="autoselect"  MEDIA="autoselect"
   
OPT=""OPTS=""
 #IP="auto"
 IP="192.168.1.1/24"  IP="192.168.1.1/24"
   ALIASES=""
   #IP6="auto"
   IP6=""
   ALIASES6=""
   
echo "Config Ethernet-LAN network interface $IFACE ..."[ -z "$IFACE" ] && exit
ifconfig $IFACE inet $IP media $MEDIA $OPT up
#dhclient $IFACEecho "Config Ethernet network interface $IFACE ..."
 
 if [ -n "$MEDIA" ]; then
         ifconfig $IFACE media $MEDIA
 fi
 if [ -n "$IP" ]; then
         if [ "$IP" = "auto" ]; then
                 dhclient $IFACE
         else
                 ifconfig $IFACE inet $IP
         fi
 fi
 for i in $ALIASES; do
         ifconfig $IFACE inet alias $i
 done
 if [ -n "$IP6" ]; then
         if [ "$IP" = "auto" ]; then
                 ifconfig $IFACE accept_rtadv
         else
                 ifconfig $IFACE inet6 $IP6
         fi
 fi
 for i in $ALIASES6; do
         ifconfig $IFACE inet6 alias $i
 done
 
 ifconfig $IFACE $OPTS up

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>