This commit enables PoE output on port 1 of the Meraki MR30H if the device is powered via 802.3at PoE. No PoE output is enabled if the device is powered via 802.3af PoE, as there is insufficient power. Signed-off-by: Hal Martin <hal.martin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20645 Signed-off-by: Robert Marko <robimarko@gmail.com>
23 lines
325 B
Bash
Executable File
23 lines
325 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=21
|
|
STOP=10
|
|
|
|
boot() {
|
|
case $(board_name) in
|
|
meraki,mr30h)
|
|
if [ $(cat /sys/class/gpio/poeaf_det/value) -eq 0 ]; then
|
|
echo "1" > /sys/class/gpio/pse_en/value
|
|
fi
|
|
;;
|
|
esac
|
|
}
|
|
|
|
shutdown() {
|
|
case $(board_name) in
|
|
meraki,mr30h)
|
|
echo "0" > /sys/class/gpio/pse_en/value
|
|
;;
|
|
esac
|
|
}
|