File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2363,6 +2363,7 @@ daemon_inet(){
2363
2363
if ps -p $( cat /dev/shm/routertools_pid_$daemon_type ) > /dev/null 2>&1 ; then
2364
2364
crit_error " There is an instance of this daemon already running."
2365
2365
fi
2366
+ export current_iface=" $inet_iface "
2366
2367
ledctl rmlock 2 & > /dev/null
2367
2368
ledctl blink & > /dev/null
2368
2369
export daemon_pid=$BASHPID
@@ -2423,7 +2424,8 @@ daemon_wifi(){
2423
2424
if ps -p $( cat /dev/shm/routertools_pid_$1 ) > /dev/null 2>&1 ; then
2424
2425
crit_error " There is an instance of this daemon already running."
2425
2426
fi
2426
-
2427
+
2428
+ export current_iface=" $1 "
2427
2429
load_prefs_iface " $1 "
2428
2430
ledctl rmlock 1 & > /dev/null
2429
2431
ledctl blink & > /dev/null
@@ -2538,7 +2540,13 @@ stop_daemon_wifi(){
2538
2540
daemon_sighup (){
2539
2541
echo " Recieved SIGHUP, reloading configuration."
2540
2542
load_prefs
2541
- load_prefs_iface " $1 "
2543
+ [[ " $daemon_type " != " inet" ]] && load_prefs_iface " $current_iface "
2544
+
2545
+ # Reapply SQM
2546
+ if [[ " $daemon_type " == " inet" ]]; then
2547
+ sqm_disable
2548
+ [[ " $enable_cake_sqm " == " true" ]] && sqm_enable
2549
+ fi
2542
2550
}
2543
2551
2544
2552
list_daemons (){
@@ -2569,6 +2577,8 @@ reload_all_daemons(){
2569
2577
if ps -p $daemon_pid > /dev/null 2>&1 ; then
2570
2578
kill -SIGHUP $daemon_pid 2> /dev/null
2571
2579
echo " Sent reload configuration request to daemon: $daemon_type "
2580
+ # Avoid doing everything at the exact same time
2581
+ sleep .1
2572
2582
else
2573
2583
rm $i 2> /dev/null
2574
2584
fi
You can’t perform that action at this time.
0 commit comments