setup

supported firmware:

		"K2P-USB",
		"R6800",
		"MZ-R13P",
		"K2P-512M",
		"B70",
		"MZ-R18",
		"NEWIFI-D1",
		"NEWIFI-Y1",
		"K2P",
		"YOUKU-L1",
		"A3004NS",

step 1. download

wget -O/etc/storage/bin/telecom_fyoung http://files.80x86.io/router/rom/opt/telecom_fyoung_client/telecom_fyoung
wget -O/etc/storage/bin/fyoung_monitor.sh http://files.80x86.io/router/rom/opt/telecom_fyoung_client/fyoung_monitor.sh
chmod a+x /etc/storage/bin/telecom_fyoung
chmod a+x /etc/storage/bin/fyoung_monitor.sh

step 2. setup login info.

edit /etc/storage/bin/fyoung_monitor.sh and set the USERNAME and PASSWD value.

step 3. test

run /etc/storage/bin/fyoung_monitor.sh -t to see if you can dial up successfully. if every thing OK, you should see something like below:

[fyoung] - login.id: 6666888
[fyoung] - login.did(serverId): 6f6e7f35-8888-44fa-6666-234567890123
[fyoung] get_is_login: user is offline now ...
[fyoung] - qrcode: HIWF://02223deb9633338d4b44444aeb888888
[fyoung] - dial_password: 788665

[fyoung] --------------------------------------->
[fyoung]   2018-04-04T12:39:42Z, run: 1 times
[fyoung] - status.brasIp: 78.200.103.204
[fyoung] - status.wanIp: 10.14.43.87
[fyoung] - status: online.
[fyoung] --------------------------------------->

step 4. cron setup

then, you can goto http://my.router/Advanced_Services_Content.asp

Scheduler tasks (Crontab) add the cron config:

 */5 * * * * /etc/storage/bin/fyoung_monitor.sh

this means check the process every 5 minutes.