PDA

Bekijk de volledige versie : Let a reboot take some longer



MHz
13-06-2007, 16:27
Hi all,

I want to let the reboot process of the router take some 3 seconds longer. So I'm sure everybody LOST their connection. Is that possible?

Thanks!

MHz
16-06-2007, 17:10
Somebody, please

al37919
16-06-2007, 17:38
Just a guess: try to add
sleep 3s
to /usr/local/sbin/pre-shutdown (maybe before that break connection forcefully), or may be to post-boot (but I think it is run after initialization of the network)

MHz
16-06-2007, 21:45
When I want to edit the file /usr/local/sbin/pre-shutdown I get the error "ERROR FILE NOT FOUND". Why is that?

al37919
16-06-2007, 22:20
Probably, because this file doesn't exist. First create it by
touch /usr/local/sbin/pre-shutdown
then edit. Don't forget that the first line of the file should be #!/bin/sh
First check that it is executed correctly when run by hand