maghuro
Very Senior Member
You're absolutely correct sir.Ok, did some additonal testing and this works for me. Anyone using a VPN-config should try it, too, to verify it works with VPN as well.
Code:#Location of upload/download stats if [ -z "$Use_VPN" ]; then upload_stats="/jffs/addons/spdmerlin.d/csv/Uploaddaily_WAN.htm" download_stats="/jffs/addons/spdmerlin.d/csv/Downloaddaily_WAN.htm" else upload_stats="/jffs/addons/spdmerlin.d/csv/Uploaddaily_VPNC$Use_VPN.htm" download_stats="/jffs/addons/spdmerlin.d/csv/Downloaddaily_VPNC$Use_VPN.htm" fi