Merge pull request #315 from PartialVolume/Fix_shutdown

Fix shutdown on buildroot based distros such as shredos 2020, while maintaining compatibility with Ubuntu/Debian etc.
This commit is contained in:
PartialVolume
2021-04-19 15:34:21 +01:00
committed by GitHub

View File

@@ -812,7 +812,7 @@ int cleanup()
}
void check_for_autopoweroff( void )
{
char cmd[] = "shutdown -P +1 \"System going down in one minute\"";
char cmd[] = "shutdown -Ph +1 \"System going down in one minute\"";
FILE* fp;
int r; // A result buffer.