X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fnetwork.git;a=blobdiff_plain;f=src%2Fudev%2Fnetwork-hotplug-rename;h=a206e67d0f13563e058708d84b2012c5b184f944;hp=0d3767d997ee2bef562bcbcf817f0ea564d6c1d7;hb=5dfc94a8b6045b1120789696b19658fb7f734f3d;hpb=798183ada229238a4385b99412217e38d6b8c409 diff --git a/src/udev/network-hotplug-rename b/src/udev/network-hotplug-rename index 0d3767d9..a206e67d 100644 --- a/src/udev/network-hotplug-rename +++ b/src/udev/network-hotplug-rename @@ -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