Jump to content

PineAP settings location


sebaz

Recommended Posts

Hi all!

 

Is there a default location for the pineap settings? I'm trying to make it so that the settings stay saved even when you reboot the device. Thanks in advance!

 

Regards,

Sebastiaan

Link to comment
Share on other sites

  • 2 weeks later...

PineAP settings are stored like any other module onboard the pineapple.

To make your configuration static across all boots:

  1. ssh root@172.16.42.1
     
  2. cd /pineapple/modules/PineAP/js
     
  3.  Modify module.js block for 'PineAPSettingsController'
registerController('PineAPSettingsController', ['$api', '$scope', '$timeout', function($api, $scope, $timeout) {
    $scope.disableInputs = true;
    $scope.disableButton = false;
    $scope.saveAlert = false;
    $scope.pineAPenabling = false;
    $scope.settings = {
        allowAssociations: false,
        logEvents: false,
        pineAPDaemon: false,
        beaconResponses: false,
        captureSSIDs: false,
        broadcastSSIDs: false,
        broadcastInterval: 'low',
        responseInterval: 'low',
        sourceMAC: '00:00:00:00:00:00',
        targetMAC: 'FF:FF:FF:FF:FF:FF'
    };

Heres an example of some configurations stored here. 

 

Link to comment
Share on other sites

However,

When I change these settings, they don't stay 'saved'

The checkboxes load as 'checked' but then get unchecked as the page loads further.

 

Quote

registerController('PineAPSettingsController', ['$api', '$scope', '$timeout', function($api, $scope, $timeout) {
    $scope.disableInputs = true;
    $scope.disableButton = false;
    $scope.saveAlert = false;
    $scope.pineAPenabling = true;
    $scope.settings = {
        allowAssociations: false,
        logEvents: true,
        pineAPDaemon: true,
        beaconResponses: false,
        captureSSIDs: true,
        broadcastSSIDs: false,
        broadcastInterval: 'low',
        responseInterval: 'low',
        sourceMAC: '00:00:00:00:00:00',
        targetMAC: 'FF:FF:FF:FF:FF:FF'
    };

 

Link to comment
Share on other sites

7 minutes ago, sebaz said:

When I change these settings, they don't stay 'saved'

In the latest RC1 test firmware (i have currently installed) the settings are saved over reboots/power downs - they are stored in  /etc/config/pineap

Link to comment
Share on other sites

9 minutes ago, sebaz said:

 However, the 'log Pineap events' checkbox stays unchecked..

For me on TETRA that box state remains over reboot/power cycle. Do you click the "Save PineAP Settings" button each time you change anything?

Link to comment
Share on other sites

  • 2 weeks later...

Well.. now my API calls stopped working. Do you have any idea if the update changed something with the api for the logging and client modules? Sending notifications still works, so it isn't my api key or syntax as far as I can see

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...