This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2826
Commits
1
Branch
46 MiB
Tree:
6e042a2b22
lilik-openwrt-22.03
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from '6e042a2b22'
${ noResults }
openwrt-packages-dist
/
net
/
sqm-scripts
/
files
/
etc
/
hotplug.d
/
iface
/
11-sqm
3 lines
71 B
Raw
Normal View
History
Teach SQM hotplug tricks Some interfaces like wan-pppoe go away, when the ppp connection is lost and get recreated once the link is established again. SQM now has its own hotplug script to re-enable itself on the interfae just hotplugged. SQM will not touch other instances of itself running on other interfaces if called by hotplug.d. The implementation now allows this functionality by calling run.sh like: /usr/lib/sqm/run.sh interface YOUR_INTERFACE_NAME_HERE e.g.: /usr/lib/sqm/run.sh interface ge00-pppoe If called with a specific interface SQM will only try to disable itself on that interface to clean up all left over state and the re-enable itself on just that interface. Hopefully that allows for better service with instable interfaces like pppoe. The current code passes a simple manual stop start test of the ge00-pppoe interface from the GUI and does seem to do the right thing, at least on cerowrt 3.10.50-1...
10 years ago
sqm-scripts: clean up interface selection for hotplugging The initial conversion to restart sqm on interfaces it is configured for in case of (transient) dis- and reappearance was half finished. These changes clean up the handling of exlicitly passed interfaces in run.sh: no second argument defaults to all configured interfaces the alternative is an individual interface name passed as 2nd argument to run.sh. The first argument either is start or stop. No argument at all will behave as if start was passed. Survives light testing... Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
10 years ago
#!/bin/sh
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh start ${DEVICE}