Power & Source of Big Ideas

Shutdown OS and kill power to nanopi2

Moderators: chensy, FATechsupport

I'd like a way to gracefully shutdown the nanopi2 and kill the power or minimally just kill the power. Is the pads to solder a switch or button to shut off power to the nanopi2? Or has anyone else came up with a solution?
One way would be to monitor one of the GPIO as an input and when it goes low have it run a Bash script to issue a shutdown command.

This probably requires another program running (PHP?) running as a background task.

Read up about the exec command for Bash and PHP.

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 1 guest