Annotation of elwix/config/etc/uboot/rc.d/010.lan.stop, revision 1.2.2.1
1.2 misho 1: #!/bin/sh
2:
1.2.2.1 ! misho 3: IFACE="em0"
1.2 misho 4:
5: MEDIA="autoselect"
6:
1.2.2.1 ! misho 7: OPTS=""
! 8: #IP="auto"
1.2 misho 9: IP="192.168.1.1/24"
1.2.2.1 ! misho 10: #IP6="auto"
! 11: IP6=""
1.2 misho 12:
1.2.2.1 ! misho 13: [ -z "$IFACE" ] && exit
! 14:
! 15: echo "Config Ethernet network interface $IFACE ..."
! 16:
! 17: if [ -n "$MEDIA" ]; then
! 18: ifconfig $IFACE media $MEDIA
! 19: fi
! 20: if [ -n "$IP" ]; then
! 21: if [ "$IP" = "auto" ]; then
! 22: dhclient $IFACE
! 23: else
! 24: ifconfig $IFACE inet $IP
! 25: fi
! 26: fi
! 27: if [ -n "$IP6" ]; then
! 28: if [ "$IP" = "auto" ]; then
! 29: ifconfig $IFACE accept_rtadv
! 30: else
! 31: ifconfig $IFACE inet6 $IP6
! 32: fi
! 33: fi
! 34: ifconfig $IFACE $OPTS up
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>