Project

General

Profile

Actions

Bug #826

closed

Recover to normal mode if power is lost

Added by Hammel about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Start date:
25 Mar 2021
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

Updated by Hammel almost 3 years 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.

Actions #2

Updated by Hammel almost 3 years 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.

Actions

Also available in: Atom PDF