echo "${NETWORK_CONFIG_DIR}/ports"
}
+function port_get_hook() {
+ local port=${1}
+ assert isset port
+
+ config_get_hook $(port_file ${port})
+}
+
+function port_config_dir() {
+ local port=${1}
+
+ print "${RUN_DIR}/ports/${port}"
+ return ${EXIT_OK}
+}
+
+function port_config_read() {
+ local port=${1}
+ assert isset port
+
+ # Save the HOOK variable.
+ local hook="${HOOK}"
+
+ config_read $(port_file ${port})
+
+ # Restore hook.
+ HOOK="${hook}"
+}
+
+function port_config_write() {
+ local port=${1}
+ assert isset port
+
+ config_write $(port_file ${port})
+}
+
function ports_get_all() {
local port
function port_file() {
local port=${1}
-
assert isset port
echo "$(port_dir)/${port}"