Bug #826

Recover to normal mode if power is lost

Added by Hammel 17 days ago. Updated 14 days ago.

Status:ClosedStart date:25 Mar 2021
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:-
Target version:PiBox - 2.0 - Harkonnen
Severity:05 - Very Low

Description

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.

Associated revisions

Revision 3110c3f5
Added by Hammel 14 days ago

RM #826: Handle failure recovery better, making pinet more reliable in general. Add LED_ON state to gpio handling.

Revision 3110c3f5
Added by Hammel 14 days ago

RM #826: Handle failure recovery better, making pinet more reliable in general. Add LED_ON state to gpio handling.

History

#1 Updated by Hammel 14 days ago

  • 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.

#2 Updated by Hammel 14 days ago

  • 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.
Closing issue.

Also available in: Atom PDF