# #
###############################################################################
-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.
done
}
-function hotplug_propagate_all_zones() {
+hotplug_propagate_all_zones() {
hotplug_assert_in_hotplug_event
local zone
done
}
-function hotplug_event_port_is_interface() {
+hotplug_event_port_is_interface() {
hotplug_assert_in_hotplug_event
local port="${1}"
[ "${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}"
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}"
list_match "${INTERFACE}" ${ports}
}
-function hotplug_event_port_uses_phy() {
+hotplug_event_port_uses_phy() {
hotplug_assert_in_hotplug_event
local port="${1}"