What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

uiDivStats uiDivstats 4.0.9 - WebUI Stats for Diversion, Feb. 12, 2025

...
After reboot:
  1. CLI menu now shows "user7" as the UI page
  2. Database size still shows partialadminusername+"B"
  3. user7 works but shows a proper database size
The last 2 points above appear to indicate that you likely have installed some Entware packages that include binaries with the same name as the router built-in binaries but behave differently when using the same arguments, and your PATH environment variable is set up to give those Entware binaries priority over their built-in counterparts which would affect running the shell script via an interactive session but not via the WebGUI.

Please run the following commands via an SSH terminal session and post the output:
Bash:
env | grep PATH= ; which sed ; which ls ; which grep
 
The last 2 points above appear to indicate that you likely have installed some Entware packages that include binaries with the same name as the router built-in binaries but behave differently when using the same arguments, and your PATH environment variable is set up to give those Entware binaries priority over their built-in counterparts which would affect running the shell script via an interactive session but not via the WebGUI.

Please run the following commands via an SSH terminal session and post the output:
Bash:
env | grep PATH= ; which sed ; which ls ; which grep

Yep that must be it. For sure am getting the Entware versions.

Code:
PATH=/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/home/adminuname:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin

/opt/bin/sed
/opt/bin/ls
/opt/bin/grep
 
Release Notes for uiDivStats 4.0.8 version (now available):

1) Added "export PATH" statement to make the built-in binaries have higher priority than the equivalent Entware binaries.

2) Various code improvements & fine-tuning.

Nice. Fixed my CLI situation instantly.
 
Release Notes for uiDivStats 4.0.9 version (now available):

1) Added and modified code so that every time the SSH CLI menu is run, it checks if the WebGUI page has already been mounted. If not found mounted, the script will run the code to remount the WebGUI.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top