- Add a script
/jffs/my-startup.sh
:
#!/bin/sh
# Copyright (C) 2021 Yuxiang Zhu <[email protected]>
# Disable multicast snooping on br0
cru a br0-no-mcast-snooping "* * * * * /bin/sh -c '/bin/echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping'"
- Auto run the script on usb mount:
nvram set script_usbmount="sh /jffs/my-startup.sh"
nvram commit
service reboot