diff options
author | thompsa <thompsa@FreeBSD.org> | 2006-06-01 11:01:54 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2006-06-01 11:01:54 +0000 |
commit | 0a5ee5e4dbfb38f156866b0155451c25dd38336a (patch) | |
tree | 86b0bd9f3895ff2f4663c8ed7bf219d8f6c7a1f7 /etc/rc.d/netif | |
parent | cffb9cb738b122d39e833afd450a538223004563 (diff) | |
download | FreeBSD-src-0a5ee5e4dbfb38f156866b0155451c25dd38336a.zip FreeBSD-src-0a5ee5e4dbfb38f156866b0155451c25dd38336a.tar.gz |
Add rc.d/bridge which is invoked when a new interface arrives and can
automaticly add it to an Ethernet bridge. This is intended for applications
such as qemu, vmware, openvpn, ... which open tap interfaces and need them
bridged with the hosts network adapter, the user can set up a glob for
interfaces to be automatically added (eg tap*).
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r-- | etc/rc.d/netif | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.d/netif b/etc/rc.d/netif index 99b5eb8..36b4596 100644 --- a/etc/rc.d/netif +++ b/etc/rc.d/netif @@ -71,6 +71,9 @@ network_start() # Resync ipfilter /etc/rc.d/ipfilter resync fi + if [ -f /etc/rc.d/bridge -a -n "$_cmdifn" ] ; then + /etc/rc.d/bridge start $_cmdifn + fi } network_stop() |