1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix no output redirection in some openmptcprouter scripts

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-07-04 10:48:01 +02:00
parent 60f552fd68
commit c1f7c7d935
4 changed files with 20 additions and 20 deletions

View file

@ -39,13 +39,13 @@ if [ -n "$HOST" ] && [ -n "$PORT" ] && [ -n "$USERNAME" ] && [ -n "$PASSWORD" ];
export SQM_VERBOSITY_MIN=10
export SQM_VERBOSITY_MAX=0
export SQM_SYSLOG=1
/etc/init.d/sqm stop $INTERFACE 2>&1 >/dev/null
#tc qdisc delete dev $INTERFACE root 2>&1 >/dev/null
#tc qdisc delete dev ifb4$INTERFACE root 2>&1 >/dev/null
/etc/init.d/sqm stop $INTERFACE >/dev/null 2>&1
#tc qdisc delete dev $INTERFACE root >/dev/null 2>&1
#tc qdisc delete dev ifb4$INTERFACE root >/dev/null 2>&1
}
#if [ "$(multipath ${INTERFACE} | grep default)" ]; then
# MP=true
# /etc/init.d/omr-tracker stop 2>&1 >/dev/null
# /etc/init.d/omr-tracker stop >/dev/null 2>&1
# multipath ${INTERFACE} off
#fi
if [ -n "$UPLOAD" ]; then
@ -94,10 +94,10 @@ if [ -n "$HOST" ] && [ -n "$PORT" ] && [ -n "$USERNAME" ] && [ -n "$PASSWORD" ];
fi
#if [ $MP ]; then
# multipath ${INTERFACE} on
# /etc/init.d/omr-tracker start & 2>&1 >/dev/null
# /etc/init.d/omr-tracker start & >/dev/null 2>&1
#fi
[ -z "$FASTTEST" ] && echo "Restart SQM on $INTERFACE"
/etc/init.d/sqm start $INTERFACE 2>&1 >/dev/null
/etc/init.d/sqm start $INTERFACE >/dev/null 2>&1
else
if [ "$resolve" != "${HOST}" ] || [ "$valid_ip6" != "ok" ]; then
curl -k -o /dev/null -H "Authorization: Bearer ${KEY}" https://${HOST}:${PORT}/speedtest || echo