Recover to normal mode if power is lost
|Status:||Closed||Start date:||25 Mar 2021|
|Target version:||PiBox - 2.0 - Harkonnen|
|Severity:||05 - Very Low|
If power is lost then pinet headless mode should return to normal mode automatically.
If pinet in UI mode is not running then the init scripts need to catch that pinet was running and cleanup from that.
RM #826: Handle failure recovery better, making pinet more reliable in general. Add LED_ON state to gpio handling.
- Status changed from New to In Progress
- % Done changed from 0 to 10
The /etc/network/interfaces file needs to be restored to its default settings (/etc/network/interfaces.wlan). I put this in the init script but that happens after the network has already been brought up, so you need a second reboot to completely fix things.
I need a second init script that handles restoring the config on reboot. Both this new script AND the S95pinet init script need to do the restoration because the latter could be called without a reboot.
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
Script added and updates to pinet-ap.sh to be more reliable on network restarts. Power cycling does a better job of returning the system to a known state.
Changes tested, committed and pushed.