diff --git a/meta-digi-del/recipes-digi/update-flash/update-flash/update_flash.c b/meta-digi-del/recipes-digi/update-flash/update-flash/update_flash.c index 34cfc2e0d..4c91ab90f 100644 --- a/meta-digi-del/recipes-digi/update-flash/update-flash/update_flash.c +++ b/meta-digi-del/recipes-digi/update-flash/update-flash/update_flash.c @@ -29,6 +29,7 @@ #include /* EXIT_SUCCESS */ #include /* memset */ #include /* close */ +#include /* reboot */ #include /* ntohl */ #include /* setmntent */ @@ -383,10 +384,7 @@ int main(int argc, char *argv[]) if (cDoReboot) { sync(); - - PRINTF("Rebooting System\n"); - /* kills init */ - kill(1, SIGTERM); + reboot(RB_AUTOBOOT); } /* may not be reached in case of kill */