Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shutdown #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nicolalamacchia
Copy link

@nicolalamacchia nicolalamacchia commented Jan 11, 2021

Fixes #90 .

Right now the shutdown command is using the -r flag, which, when used, actually reboots a system. The correct command should be without that flag. See man 8 shutdown.

Remove the `-r` flag from the `shutdown` command
@cgherman
Copy link

Agree on this, it's a copy-paste mistake. I read through all the code and was confused about this line.

@fab1o
Copy link

fab1o commented Oct 17, 2022

why hasnt this been merged? @cgherman

@cgherman
Copy link

why hasnt this been merged? @cgherman

@RetroFlag can you please work on merging this for customers? It seems like an easy fix to verify, and there are several people in agreement on this...

@yoyojacky
Copy link

SafeShutdown.py里面的 poweroff 函数里面的os.system(’shutdown -r now') 是重启,你应该改成 os.system('shutdown -h now')
就是改一个字母, -r 改成 -h ,就搞定了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NESPi 4 Case Shutdown Scripts Not Working Correctly
4 participants