Signed-off-by: John Crispin <blogic@openwrt.org>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <getopt.h>
#include <unistd.h>
#include <getopt.h>
else
procd_state_next();
uloop_run();
else
procd_state_next();
uloop_run();
+ uloop_done();
+
+ if (getpid() == 1)
+ procd_shutdown(RB_AUTOBOOT);
sigaction(SIGHUP, &sa_dummy, NULL);
sigaction(SIGKILL, &sa_dummy, NULL);
sigaction(SIGSTOP, &sa_dummy, NULL);
sigaction(SIGHUP, &sa_dummy, NULL);
sigaction(SIGKILL, &sa_dummy, NULL);
sigaction(SIGSTOP, &sa_dummy, NULL);
+ reboot(RB_DISABLE_CAD);