diff --git a/wrc_main.c b/wrc_main.c index 1a7f130a9bcc46ebd0fa1f44421d63802e54559d..9f8209ead27f6746f7664341f944c4d8bd4992e7 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 (;;) {