Page 1 of 1

Network Delay

Posted: 25 Jan 2017, 17:48
by JesseR
I am new to porteus, I have been using it for a few months now.

I have a question about the network connection. is there a way to delay the executeing of the config until the network connection to the lan has been established?

here is the problem, i have old cisco switches, which take about 30 seconds to provide a live internet connection to a computer that has just booted.

this is the line having a problem.

browser_preferences=http://mywebsitehere/opacs/opacconfig.txt

when the computers boot, it throws an error because it can't find the text file.

as a test, I connected one of the computers to a different switch and it works without a problem.

so all I need is a on boot delay of about 30 seconds.

is there a setting like that?

Thanks!
Jesse

Re: Network Delay

Posted: 25 Jan 2017, 17:58
by Blaze
JesseR wrote:so all I need is a on boot delay of about 30 seconds.

is there a setting like that?
Yes. Try delay=30 in /mnt/sdb1/boot/syslinux/porteus.cfg

For example

LABEL GRAPHICAL section
....
APPEND initrd=initrd.xz changes=/porteus delay=30

Cheers

Re: Network Delay

Posted: 25 Jan 2017, 19:23
by JesseR
I don't know enough about linux to be able to do that. is there anything I can add to the config file?

Re: Network Delay

Posted: 25 Jan 2017, 20:11
by fanthom
Hello Jesse,

You should post in kiosk section of the forum or at least indicate that you are using kiosk to not confuse Porteus Desktop users.

To resolve your problem you could use 'run_command=sleep 30' parameter. More info:
http://porteus-kiosk.org/parameters.html#run_command

Thank you.

Re: Network Delay

Posted: 25 Jan 2017, 21:18
by JesseR
Thanks that worked for me!