]> git.ipfire.org Git - people/stevee/network.git/commitdiff
Remove port initialization on init event.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 May 2012 09:18:09 +0000 (09:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 May 2012 09:18:09 +0000 (09:18 +0000)
When the system boots up, udev is in charge to
properly detect devices and create configurations.

functions.ports

index cb247a165ae64adcd547419bb6168d4d15129f35..52b44e84acccd41f5fe598bf39ff96c7008dfb7d 100644 (file)
@@ -199,22 +199,6 @@ function ports_get() {
        done
 }
 
-# This function automatically creates the real ethernet devices
-# that do not exists in the configuration.
-# Saves some work for the administrator.
-function ports_init() {
-       local device
-       for device in $(devices_get_all); do
-               if device_is_real ${device}; then
-                       if ! port_exists ${device}; then
-                               port_create ethernet ${device}
-                       fi
-               fi
-       done
-}
-
-init_register ports_init
-
 function port_find_free() {
        local pattern=${1}