gluon/package/gluon-mesh-batman-adv-15/files/etc/hotplug.d/net/30-gluon-mesh-batman-adv-15

7 lines
300 B
Plaintext

[ "$ACTION" = 'add' ] || exit 0
# Exit if we're in setup mode
[ $(lua -e 'uci_state=require("luci.model.uci").cursor_state(); print(uci_state:get_first("gluon-setup-mode", "setup_mode", "running", "0"))') = 0 ] || exit 0
exec /lib/gluon/mesh-batman-adv-core/enable_mesh_interface "$INTERFACE" 1532