From cf706534b87b70d44030dfb83d79f66ccaaa0738 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 25 May 2012 09:18:09 +0000 Subject: [PATCH] Remove port initialization on init event. When the system boots up, udev is in charge to properly detect devices and create configurations. --- functions.ports | 16 ---------------- 1 file changed, 16 deletions(-) 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} -- 2.47.3