Files
wlan-ap/feeds/facebook/fbwifi/files/etc/hotplug.d/iface/50-fbwifi
John Crispin bc49ef6ad6 facebook-wifi: add support for this feature
Signed-off-by: John Crispin <john@phrozen.org>
2021-08-24 17:04:08 +02:00

11 lines
244 B
Bash

#!/bin/sh
[ "$ACTION" = ifup ] || exit 0
/etc/init.d/fbwifi enabled || exit 0
ip route get fibmatch 1.1.1.1 | grep -q "$DEVICE" || exit 0
logger -t fbwifi "Reloading fbwifi due to $ACTION of $INTERFACE ($DEVICE)"
/etc/init.d/fbwifi restart