X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fnetwork.git;a=blobdiff_plain;f=src%2Ffunctions%2Ffunctions.hotplug;h=8fccae4e7c6ef9f645cf4ebf02b8a262e25d9d69;hp=80089ac3821ef668e5b236dbf2a54c67b2acf66f;hb=1c6a4e3050e4ea8baf1b57a73b411c631457794f;hpb=7ad5252c5573494c246fa6fc059c2a1564faedcf diff --git a/src/functions/functions.hotplug b/src/functions/functions.hotplug index 80089ac3..8fccae4e 100644 --- a/src/functions/functions.hotplug +++ b/src/functions/functions.hotplug @@ -19,17 +19,17 @@ # # ############################################################################### -function hotplug_assert_in_hotplug_event() { +hotplug_assert_in_hotplug_event() { assert [ -n "${IN_HOTPLUG_EVENT}" ] } -function hotplug_action() { +hotplug_action() { hotplug_assert_in_hotplug_event echo "${ACTION}" } -function hotplug_propagate_all_ports() { +hotplug_propagate_all_ports() { hotplug_assert_in_hotplug_event # Create configured child devices. @@ -50,7 +50,7 @@ function hotplug_propagate_all_ports() { done } -function hotplug_propagate_all_zones() { +hotplug_propagate_all_zones() { hotplug_assert_in_hotplug_event local zone @@ -70,7 +70,7 @@ function hotplug_propagate_all_zones() { done } -function hotplug_event_port_is_interface() { +hotplug_event_port_is_interface() { hotplug_assert_in_hotplug_event local port="${1}" @@ -79,7 +79,7 @@ function hotplug_event_port_is_interface() { [ "${port}" = "${INTERFACE}" ] } -function hotplug_event_interface_is_slave_of_port() { +hotplug_event_interface_is_slave_of_port() { hotplug_assert_in_hotplug_event local port="${1}" @@ -92,7 +92,7 @@ function hotplug_event_interface_is_slave_of_port() { list_match "${INTERFACE}" ${slaves} } -function hotplug_event_interface_is_port_of_zone() { +hotplug_event_interface_is_port_of_zone() { hotplug_assert_in_hotplug_event local zone="${1}" @@ -105,7 +105,7 @@ function hotplug_event_interface_is_port_of_zone() { list_match "${INTERFACE}" ${ports} } -function hotplug_event_port_uses_phy() { +hotplug_event_port_uses_phy() { hotplug_assert_in_hotplug_event local port="${1}"