Update mm-scripts.sh

This commit is contained in:
2023-05-28 23:58:23 -05:00
parent 492f11f8d9
commit 4b489b3b08

View File

@@ -1434,6 +1434,10 @@ USAGE(){
echo -e " ${idsCL[Cyan]}${srvcscheck}${idsCL[Default]}"
echo
}
TEST(){
/usr/bin/vnstat -t
/usr/bin/vnstat -d -b $(date --date="-3 day" +%Y-%m-%d) -e $(date +%Y-%m-%d)
}
if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
@@ -1447,7 +1451,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
setup) MMSETUP;;
vpninfo) GETVPNINFO;;
speedtest) VPNSPEEDTEST;;
test) TEST;;
stop) MMSTOP;;
start | check)
if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then