[PATCH] start ntpd after 30s to ensure that the interface is up

Tim Niemeyer tim.niemeyer at mastersword.de
Mi Sep 2 20:59:18 CEST 2015


Am Mittwoch, den 02.09.2015, 20:52 +0200 schrieb tk+ff at meskal.net:
> Signed-off-by: Tobias Klaus <tk+ff at meskalero.de>
> ---
>  bsp/default/root_file_system/etc/rc.local.tpl | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
> index e67d775..0e73f49 100755
> --- a/bsp/default/root_file_system/etc/rc.local.tpl
> +++ b/bsp/default/root_file_system/etc/rc.local.tpl
> @@ -28,8 +28,8 @@ fi
>  # collect environment info and write to dot-script
>  /etc/environment.sh > /tmp/environment
>  
> -# Starting NTP-Client Daemon
> -ntpd -p ${NTPD_IP}
> +# Starting NTP-Client Daemon after 30s to ensure that the interface is up
> +( sleep 30 ; ntpd -p ${NTPD_IP} )
Sebastians Lösung hatte da noch ein & hinten dran. :-) Ohne das wird die
Ausführung der folgenden Boot Skripte 30 Sekunden lang blockiert.

Tim

>  
>  . /etc/firewall.user
>  
> -- 
> 2.5.0
> 





Mehr Informationen über die Mailingliste franken-dev