]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/udev/network-hotplug-rename
Remove remains of the "real" device type
[people/stevee/network.git] / src / udev / network-hotplug-rename
index 0d3767d997ee2bef562bcbcf817f0ea564d6c1d7..a206e67d0f13563e058708d84b2012c5b184f944 100644 (file)
@@ -25,6 +25,9 @@ LOG_DISABLE_STDOUT="true"
 
 . /usr/lib/network/functions
 
+# Read network settings
+network_settings_read
+
 # Setup the locking.
 LOCKFILE="${RUN_DIR}/.rename_lock"
 function cleanup() {
@@ -57,7 +60,7 @@ type=$(device_get_type ${INTERFACE})
 log DEBUG "Interface '${INTERFACE}' is of type '${type}'."
 
 case "${type}" in
-       ethernet|real)
+       ethernet)
                # Search within all the port configurations
                # if this port has already been configured.
                for port in $(ports_get_all); do
@@ -73,8 +76,8 @@ case "${type}" in
                port=$(port_find_free ${PORT_PATTERN})
                echo "${port}"
 
-               log DEBUG "Could not find an existing port configuration for '${INTERFACE}'."
-               log DEBUG "${INTERFACE} --> ${port}"
+               log DEBUG "Could not find an existing port configuration for '${INTERFACE}'"
+               log DEBUG "Renaming interface '${INTERFACE}' to '${port}'"
                ;;
 esac