From: Michael Tremer Date: Fri, 25 May 2012 09:18:09 +0000 (+0000) Subject: Remove port initialization on init event. X-Git-Tag: 004~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf706534b87b70d44030dfb83d79f66ccaaa0738;p=network.git Remove port initialization on init event. When the system boots up, udev is in charge to properly detect devices and create configurations. --- diff --git a/functions.ports b/functions.ports index cb247a16..52b44e84 100644 --- a/functions.ports +++ b/functions.ports @@ -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}