Skip to content

Commit

Permalink
ffda-usb-wan-hotplug: remove old mesh_wan check (#127)
Browse files Browse the repository at this point in the history
it should be up to the user to disable this if mesh on wan is enabled.
I think it should not be harmful to have this enabled, while it of course is not very useful to have Mesh-on-WAN enabled when using the usb-wan-hotplug functionality
  • Loading branch information
maurerle authored Aug 8, 2024
1 parent 3c85347 commit 50f13e2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ NETPATH="/sys${DEVPATH}/net"
LOCKPATH="/tmp/usb-wan-hotplug-devpath"

ENABLED=$(uci get usb-wan-hotplug.settings.enabled)
MESH_WAN=$(uci get network.mesh_wan.disabled)

if [ "${ACTION}" = "add" ]; then
[ "${ENABLED}" != "1" ] && exit 0
[ "${MESH_WAN}" != "1" ] && exit 0
test -e "${LOCKPATH}" && exit 0
if test -e "${NETPATH}"; then
logger -t hotplug "Network USB device was plugged in"
Expand Down

0 comments on commit 50f13e2

Please sign in to comment.