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 are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 47 on Wed Feb 21, 2018 7:00 am

Users browsing this forum: No registered users and 3 guests