flashing-openwrt-expects/toggle_jg928a_port.sh
Martin Kennedy b8df54eed1 feat: ap3825i: parameterize everything
Reflash these with `make run1`, etc.
2025-07-26 18:29:02 -04:00

16 lines
312 B
Bash
Executable File

#!/bin/bash
function s {
ssh root@jg928a "$(printf '%q ' "$@")"
}
echo before: | tr '\n' '\t'
s ubus call poe info
s ubus call poe manage '{"port": "'$1'", "enable": false}'
sleep 2;
echo after shutoff: | tr '\n' '\t';
s ubus call poe info;
s ubus call poe manage '{"port": "'$1'", "enable": true}'
sleep 2;