You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Initialize variables and language setting for compatibility
43
43
LANG=C
44
-
version="2.0.0"
44
+
version="2.0.1"
45
45
error_count=0
46
46
crit_count=0
47
47
crit_add=0
@@ -476,9 +476,8 @@ initfs(){
476
476
echo"# WIRELESS INTERFACE OPTIONS #">>$f
477
477
echo"# Check https://wiki.dd-wrt.com/wiki/index.php/Atheros/ath_wireless_settings for explanations.">>$f
478
478
echo"">>$f
479
-
echo"# hostapd_wait_for_secs -> seconds to wait for hostapd to ready interfaces">>$f
480
-
echo"# 15 seconds is a reasonable number. increase this if you use ACS or a lot of virtual interfaces.">>$f
481
-
echo"hostapd_wait_for_secs=15 ">>$f
479
+
echo"# hostapd_wait_for_secs -> seconds to wait for hostapd to be done. 'auto' tries to automatically detect.">>$f
480
+
echo"hostapd_wait_for_secs=auto">>$f
482
481
echo"">>$f
483
482
echo"# wifi_txpower -> transmission power for this interface">>$f
484
483
echo"# can be 'auto' or a number in dBm for fixed power. Auto is usually best.">>$f
@@ -546,7 +545,7 @@ initfs(){
546
545
echo"">>$f
547
546
echo"# enable_ipv6 -> a boolean. true only enables ipv6 forwarding on this interface.">>$f
548
547
echo"# if you actually want it to work you need radvd or a configured dnsmasq.">>$f
549
-
echo"# unless something else in your network does this for you.">>$f
548
+
echo"# and manual address addition/routing via scripting.">>$f
550
549
echo"enable_ipv6=true">>$f
551
550
echo"">>$f
552
551
echo"# enable_pptp -> a boolean. true inserts the module needed for PPTP. if you are not sure you need it say false here, as the Point to Point Tunneling Protocol is known to be insecure.">>$f
@@ -586,7 +585,7 @@ initfs_daemon_cfg(){
586
585
echo"# these options are only valid for the --daemon command">>$f
587
586
echo"">>$f
588
587
echo"# daemon_manage_inet_every -> a number in seconds. the internet watchdog will be executed every this amount of time.">>$f
589
-
echo"daemon_manage_inet_every=60">>$f
588
+
echo"daemon_manage_inet_every=50">>$f
590
589
echo"">>$f
591
590
echo"# daemon_manage_wifi_every -> a number in seconds. the wifi watchdog will be executed every this amount of time.">>$f
592
591
echo"daemon_manage_wifi_every=40">>$f
@@ -599,7 +598,7 @@ initfs_daemon_cfg(){
599
598
echo"# daemon_ath9k_recalibrate_every -> a number in seconds.">>$f
600
599
echo"# if running the wifi daemon and wifi_driver for that interface includes ath9k, ath9k-recalibrate will be run every X seconds.">>$f
601
600
echo"# recommended is hourly (3600). Set to 0 to disable.">>$f
602
-
echo"daemon_ath9k_recalibrate_every=0">>$f
601
+
echo"daemon_ath9k_recalibrate_every=3600">>$f
603
602
echo"">>$f
604
603
605
604
unset f
@@ -1129,6 +1128,7 @@ sqm_disable(){
1129
1128
1130
1129
foriin$ifaces;do
1131
1130
tc qdisc del dev $i root 2>/dev/null
1131
+
tc qdisc del dev $i handle ffff: ingress 2>/dev/null
1132
1132
# FQ-CoDel is a safe alternative
1133
1133
# if this fails system default (probably none) will stay
1134
1134
tc qdisc add dev $i root fq_codel 2>/dev/null
@@ -1197,42 +1197,51 @@ sqm_enable(){
1197
1197
1198
1198
# Apply qdisc in categories
1199
1199
foriin$ppp_ifaces;do
1200
+
ifnq echo"Applying queue discipline to $i (ethernet interface)"
getphy $i|| crit_error "Couldn't get a phy number for interface $i even after trying twice, this usually means your network card isn't initialized by the driver yet."
0 commit comments