local port=$(port_find_free ${PORT_PATTERN_BATMAN_ADV_PORT})
assert isset port
- config_write $(port_file ${port}) ${HOOK_SETTINGS}
+ port_settings_write "${port}" ${HOOK_SETTINGS}
exit ${EXIT_OK}
}
assert isset port
shift
- config_read $(port_file ${port})
+ port_settings_read "${port}" ${HOOK_SETTINGS}
while [ $# -gt 0 ]; do
case "${1}" in
shift
done
- config_write $(port_file ${port}) ${HOOK_SETTINGS}
+ port_settings_write "${port}" ${HOOK_SETTINGS}
exit ${EXIT_OK}
}
local port=${1}
assert isset port
- config_read $(port_file ${port})
+ port_settings_read "${port}" ${HOOK_SETTINGS}
# Check if the PHY is present.
local phy=$(phy_get ${PHY})
assert port_exists ${port}
# Read configuration of port.
- config_read $(port_file ${port})
+ port_settings_read "${port}" ${HOOK_SETTINGS}
# Get the address of the phy.
local phy_address=$(phy_get_address ${phy})