Code: Select all
poweroffCode: Select all
shutdownIs it possible to power it off properly?
If there is no such command, can it be done by C++ code? Like:
Code: Select all
#include <unistd.h>
#include <sys/reboot.h>
sync();
reboot(RB_POWER_OFF);
Code: Select all
poweroffCode: Select all
shutdownCode: Select all
#include <unistd.h>
#include <sys/reboot.h>
sync();
reboot(RB_POWER_OFF);