Page 9 of 12

Re: Toon mobile access

Posted: Thu Nov 04, 2021 1:01 pm
by TheHogNL
So it did install it indeed. Once a day or after a reboot it will run.
I will see how to prevent updating on user request

Re: Toon mobile access

Posted: Fri Nov 05, 2021 12:31 am
by oepi-loepi
TheHogNL wrote:So it did install it indeed. Once a day or after a reboot it will run.
I will see how to prevent updating on user request
Th most ugly but effective way is to skip the update if the user has created a noupdate.txt file in the folder. But i leave it to you to find something. Your experience is far beyond mine.

Re: Toon mobile access

Posted: Fri Nov 05, 2021 1:10 pm
by Ron_nl
TheHogNL wrote: Once a day or after a reboot it will run.
You are correct, after a reboot it will change within 10 minutes. Without a reboot it will be changed in a day.

Re: Toon mobile access

Posted: Fri Nov 05, 2021 1:35 pm
by TheHogNL
For now easiest will be to make your own copy of the mobile app in another folder for your own changese

Re: Toon mobile access

Posted: Fri Nov 05, 2021 3:20 pm
by Ron_nl
TheHogNL wrote:For now easiest will be to make your own copy of the mobile app in another folder for your own changese
For the customizing it is, but there is still the lighttpd.conf (disable login) issue that keeps being pushed back.
Why did this never happen before?
Is there some new kind of checksum in order with this latest version?

Re: Toon mobile access

Posted: Fri Nov 05, 2021 4:42 pm
by TheHogNL
Ron_nl wrote:
TheHogNL wrote:For now easiest will be to make your own copy of the mobile app in another folder for your own changese
For the customizing it is, but there is still the lighttpd.conf (disable login) issue that keeps being pushed back.
Why did this never happen before?
Is there some new kind of checksum in order with this latest version?
It happened always. It is just that we didn't modify the application before. Only just recently.

Re: Toon mobile access

Posted: Fri Nov 05, 2021 5:01 pm
by TheHogNL
Just discovered a fault in the version.txt file. Because it has a dos linefeed it doesn't match the version number on github anymore and therefore each day it will get updated.

And I am updating the update script to ignore if the version.txt has content '0'

So to make sure mobile (and lighttpd.conf) are not updated do

Code: Select all

echo "0" > /qmf/www/mobile/version.txt 

Re: Toon mobile access

Posted: Fri Nov 05, 2021 6:19 pm
by Ron_nl
TheHogNL wrote:Just discovered a fault in the version.txt file. Because it has a dos linefeed it doesn't match the version number on github anymore and therefore each day it will get updated.

And I am updating the update script to ignore if the version.txt has content '0'

So to make sure mobile (and lighttpd.conf) are not updated do

Code: Select all

echo "0" > /qmf/www/mobile/version.txt 
That explains what happens, and made me think of a sort of checksum :mrgreen:
It looks like it is working again like before. 8)

Big thanks!

Ron.

Re: Toon mobile access

Posted: Fri Nov 05, 2021 10:55 pm
by oepi-loepi
Sorry my mistake about the extra <enter> in the version.txt

Re: Toon mobile access

Posted: Fri Nov 05, 2021 11:16 pm
by Ron_nl
oepi-loepi wrote:Sorry my mistake about the extra <enter> in the version.txt
No worries :) It's fixed.

Re: Toon mobile access

Posted: Sun Nov 21, 2021 11:04 pm
by Arnout2000
My mobile access is giving me some troubles. In most cases I cannot access Toon while on my home network.
In the past this worked just fine.
In the Internet menu the option “Mobile access” is on.
If I also switch on the “Lokale Toegang” option (max 2 hours), I have no issue to access Toon via my browser.
What is wrong?

Re: Toon mobile access

Posted: Mon Nov 22, 2021 10:15 am
by TheHogNL
Arnout2000 wrote:My mobile access is giving me some troubles. In most cases I cannot access Toon while on my home network.
In the past this worked just fine.
In the Internet menu the option “Mobile access” is on.
If I also switch on the “Lokale Toegang” option (max 2 hours), I have no issue to access Toon via my browser.
What is wrong?
If you touch 'lokale toegang' the internal firewall will reset after 2 hours and you will be blocked. Normally you don't need to touch that on a rooted and it will break the roooted toon modified firewall settings after the 2 hours.
Please run the update script with option -f to repair the firewall settings and reboot.

Re: Toon mobile access

Posted: Mon Nov 22, 2021 10:34 am
by Arnout2000
I haven't done anything with scripting on my Toon before, but there is a first time for everything.

This is the command I should give while accessing Toon via Putty?
sh /root/update-rooted.sh -f

Or do I need to download the script first with something like this:
curl -Nks https://raw.githubusercontent.com/ToonS ... -rooted.sh -o /root/update-rooted.sh

Re: Toon mobile access

Posted: Mon Nov 22, 2021 3:51 pm
by TheHogNL
Arnout2000 wrote:I haven't done anything with scripting on my Toon before, but there is a first time for everything.

This is the command I should give while accessing Toon via Putty?
sh /root/update-rooted.sh -f

Or do I need to download the script first with something like this:
curl -Nks https://raw.githubusercontent.com/ToonS ... -rooted.sh -o /root/update-rooted.sh
Yes download it first. To be sure you have the latest version.

Re: Toon mobile access

Posted: Mon Nov 22, 2021 4:30 pm
by Arnout2000
Done...Mobile access seems to work again.

Thank you for the support...learning all the time :)