Index: netif =================================================================== RCS file: /private/FreeBSD/src/etc/rc.d/netif,v retrieving revision 1.11 diff -u -p -r1.11 netif --- netif 7 Oct 2004 13:55:26 -0000 1.11 +++ netif 23 Oct 2004 17:52:14 -0000 @@ -58,6 +58,9 @@ network_start() gif_up fi + # Rename interface(s) if requested. + network_common ifn_rename + # Configure the interface(s). network_common ifn_start verbose @@ -140,6 +143,18 @@ network_common() debug "The following interfaces were not configured: $_fail" } +ifn_rename() +{ + local ifn ifname + ifn="$1" + + [ -z "$ifn" ] && return 1 + eval ifname=\$ifconfig_${ifn}_name + [ -z "$ifname" ] && return 1 + ifconfig $ifn name $ifname + return 1 +} + ifn_start() { local ifn cfg