From 44cce6cd5980389fd6ac896f6a2a371b3d7db231 Mon Sep 17 00:00:00 2001 From: Grzegorz Daniluk <grzegorz.daniluk@gmail.com> Date: Fri, 20 Jul 2012 17:02:24 +0200 Subject: [PATCH] wrc_main: move init script execution after whole initialization --- wrc_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wrc_main.c b/wrc_main.c index 1a7f130..9f8209e 100644 --- a/wrc_main.c +++ b/wrc_main.c @@ -71,9 +71,6 @@ void wrc_initialize() ipv4_init("wru1"); arp_init("wru1"); #endif - - //try to read and execute init script from EEPROM - shell_boot_script(); } #define LINK_WENT_UP 1 @@ -157,9 +154,12 @@ int main(void) wrc_initialize(); shell_init(); - + wrc_ptp_set_mode(WRC_MODE_SLAVE); wrc_ptp_start(); + + //try to read and execute init script from EEPROM + shell_boot_script(); for (;;) { -- GitLab