hoochrulez55 Posted October 17, 2022 Share Posted October 17, 2022 (edited) I see that with the new firmware there is no more shutdown button. How do I shut the device down properly now? If anyone can confirm this: From what I see now, the poweroff bash command is the only way to do it with new firmware 2.1.3? Thanks in advance! Hooch Mark as Solution Edited October 17, 2022 by hoochrulez55 Quote Link to comment Share on other sites More sharing options...
Solution dark_pyrro Posted October 18, 2022 Solution Share Posted October 18, 2022 The shutdown option being removed is a part of the release notes of 2.1.3 https://forums.hak5.org/topic/57861-release-wifi-pineapple-213/ Using poweroff won't truly shut the Pineapple down fully either. It will kill things, but not turn it off. 1 Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 18, 2022 Author Share Posted October 18, 2022 4 hours ago, dark_pyrro said: The shutdown option being removed is a part of the release notes of 2.1.3 https://forums.hak5.org/topic/57861-release-wifi-pineapple-213/ Using poweroff won't truly shut the Pineapple down fully either. It will kill things, but not turn it off. 4 hours ago, dark_pyrro said: The shutdown option being removed is a part of the release notes of 2.1.3 https://forums.hak5.org/topic/57861-release-wifi-pineapple-213/ Using poweroff won't truly shut the Pineapple down fully either. It will kill things, but not turn it off. Thank you! Is there any way to shut it off properly or is this the closest way now. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 18, 2022 Share Posted October 18, 2022 Since the hardware doesn't have the features needed to fully shut the Pineapple down, using poweroff is the closest way that I know of. But, as said, it won't power the Pineapple off. If you run poweroff with the web UI loaded in a browser, you can still access the UI but things are just spinning/trying to load in the UI indicating that some things are still alive but some are probably killed. I will probably use the button script to do the poweroff anyway so that it's at least possible to do a sync and shut down/kill some processes. I guess you have to work pretty hard to really crash any storage device on the Pineapple though. 1 Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 18, 2022 Author Share Posted October 18, 2022 I see the script option there… I’m not well trained in bash coding. Are there pre written scripts out there for it? I heard that the reboot is the only one that works in that spot now but I could be wrong. Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 18, 2022 Author Share Posted October 18, 2022 I’ve seen that you can also use the “halt” command as well as poweroff. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 18, 2022 Share Posted October 18, 2022 The button script an ordinary and simple bash script, you could do anything (within the boundaries of what's available on the Pineapple/OpenWrt). If changing it, you might need to check in /etc/pineapple (where it's actually stored/located) that it is executable. I've changed it in the web UI and sometimes it resets the executable flag of the file. Haven't investigated further why that might happen. I have just enabled execution for the file in the terminal. halt - halts the system poweroff - halts the system and then powers it off (but since there is no way of actually powering it off, it works more or less like halt) You can run "poweroff --help" and "halt --help" in the terminal to see the (short) explanation. 1 Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 18, 2022 Share Posted October 18, 2022 I guess it's not needed to make the button script executable after all. I looked at the running processes now when pressing the button and it's started with bash (not just issued using the script file name only), so it will work anyway. Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 18, 2022 Author Share Posted October 18, 2022 Nice. Any good tutorials out there for writing these scripts? I’m more of an arduino coder lol I’d like to write a shutdown script for the button. Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 18, 2022 Share Posted October 18, 2022 There are endless resources online about how to script in bash and if you are a coder, well, then it's not at all difficult to get up and running. I'd just edit the current script and add poweroff (or halt) instead of reboot. Perhaps a short sleep after the sync but that shouldn't really be needed. Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 18, 2022 Author Share Posted October 18, 2022 Excellent I will start my hunt to learn bash in my free time. Thanks! And oh okay so it literally is just as simple as switching that one word out in the current reboot script (poweroff or halt for reboot). Perfect. That's all I really need for now. I am going to pursue learning the bash language because I recently purchased a Bash Bunny as well. Thanks again for your help. Hooch Quote Link to comment Share on other sites More sharing options...
SKiZZ Posted October 19, 2022 Share Posted October 19, 2022 If it's any consolation I've used pineapples for probably 10 years now and never had an issue just pulling the plug. I can't I ever even tried used the shutdown portion. 1 Quote Link to comment Share on other sites More sharing options...
hoochrulez55 Posted October 19, 2022 Author Share Posted October 19, 2022 6 hours ago, SKiZZ said: If it's any consolation I've used pineapples for probably 10 years now and never had an issue just pulling the plug. I can't I ever even tried used the shutdown portion. Excellent thanks for the tip. I’m new to the device and am fairly new to the bash language. I just wanted to make sure I wasn’t harming the device or doing anything improper. Thanks again! Hooch Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.