aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/netif
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-10-30 13:44:06 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-10-30 13:44:06 +0000
commit1f8197cf4d1485f4ae8a7381c0a286b47b61caf6 (patch)
tree8b33932a48beb2cd86ecc804ea6123b37da7fcc4 /etc/rc.d/netif
parent9bb402796d900ab350c948194690ce1bce621951 (diff)
downloadsrc-1f8197cf4d1485f4ae8a7381c0a286b47b61caf6.tar.gz
src-1f8197cf4d1485f4ae8a7381c0a286b47b61caf6.zip
Allow to change interfaces name on boot time.
Now, one should be able to put something like this into /etc/rc.conf: ifconfig_fxp0_name="net0" ifconfig_net0="inet 10.0.0.1/16" Reviewed by: green
Notes
Notes: svn path=/head/; revision=137070
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r--etc/rc.d/netif3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index 029076c1dd96..58a9476b3a83 100644
--- a/etc/rc.d/netif
+++ b/etc/rc.d/netif
@@ -56,6 +56,9 @@ network_start()
# Create IPv6<-->IPv4 tunnels
gif_up
+
+ # Rename interfaces.
+ ifnet_rename
fi
# Configure the interface(s).