resin-io/resin-network-config

Name: resin-network-config

Owner: Resin.io

Description: DEPRECATED. Handle resin images network configuration.

Created: 2015-05-18 12:42:13.0

Updated: 2016-11-14 00:14:07.0

Pushed: 2015-08-31 23:21:55.0

Homepage:

Size: 196

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

resin-network-config

npm version dependencies Build Status Build status

DEPRECATED in favor of https://github.com/resin-io/resin-device-config

Handle resin images network configuration.

Installation

Install resin-network-config by running:

m install --save resin-network-config
Documentation
Object network.getFiles(Object options = {})

Get network related configuration files.

The function accepts an optional options object which can have the following properties:

orkConfig = require('resin-network-config')

s = networkConfig.getFiles
wifiSsid: 'foobar'
wifiKey: 'hello'

ole.log(files)


'network/settings': '''
    [global]
    OfflineMode=false

    [WiFi]
    Enable=true
    Tethering=false

    [Wired]
    Enable=true
    Tethering=false

    [Bluetooth]
    Enable=true
    Tethering=false
''',
'network/network.config': '''
    [service_home_ethernet]
    Type = ethernet
    Nameservers = 8.8.8.8,8.8.4.4

    [service_home_wifi]
    Type = wifi
    Name = foobar
    Passphrase = hello
    Nameservers = 8.8.8.8,8.8.4.4
'''

Tests

Run the test suite by doing:

lp test
Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

lp lint
Support

If you're having any problem, please raise an issue on GitHub.

License

The project is licensed under the MIT license.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.