mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 22:15:41 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user