Browse Source

Make sure all DEBUG variables are available to stop-sqm

To allow logging into SQM_DEBUG_LOG during stop-sqm three
additional variables need to be available to stop-sqm:
SQM_DEBUG, SQM_DEBUG_LOG, OUTPUT_TARGET

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
Sebastian Moeller 8 năm trước cách đây
mục cha
commit
7103e56b2a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/run-openwrt.sh

+ 1 - 1
src/run-openwrt.sh

@@ -21,7 +21,7 @@ if [ "$ACTION" = "stop" -a -z "$RUN_IFACE" ]; then
     for f in ${SQM_STATE_DIR}/*.state; do
         # Source the state file prior to stopping; we need the $IFACE and
         # $SCRIPT variables saved in there.
-        [ -f "$f" ] && ( . $f; IFACE=$IFACE SCRIPT=$SCRIPT ${SQM_LIB_DIR}/stop-sqm )
+        [ -f "$f" ] && ( . $f; IFACE=$IFACE SCRIPT=$SCRIPT SQM_DEBUG=$SQM_DEBUG SQM_DEBUG_LOG=$SQM_DEBUG_LOG OUTPUT_TARGET=$OUTPUT_TARGET ${SQM_LIB_DIR}/stop-sqm )
     done
     exit 0
 fi