batman-adv: use batctl for configuration of hop_penalty
[feed/routing.git] / batman-adv / files / etc / hotplug.d / net / 99-batman-adv
1 #!/bin/sh
2
3 . /lib/batman-adv/config.sh
4
5 bat_load_module
6 config_load batman-adv
7
8 case "$ACTION" in
9 add)
10 [ -d /sys/class/net/$INTERFACE/mesh/ ] && bat_config "$INTERFACE"
11 ;;
12 esac