[Git-commits] [grml/grml-network] 45b837: Fix some shellcheck warnings

Mykola Malkov mmalkov at sipwise.com
Thu Aug 2 16:53:47 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-network
  Commit: 45b8379191095cf50ac2e58569e1820957a2cae5
      https://github.com/grml/grml-network/commit/45b8379191095cf50ac2e58569e1820957a2cae5
  Author: Mykola Malkov <mmalkov at sipwise.com>
  Date:   2018-07-30 (Mon, 30 Jul 2018)

  Changed paths:
    M sbin/netcardconfig

  Log Message:
  -----------
  Fix some shellcheck warnings

Fix SC2086 - Double quote to prevent globbing and word splitting.


  Commit: eebbac24ec6479c6c88593892f7d1616b91ccc19
      https://github.com/grml/grml-network/commit/eebbac24ec6479c6c88593892f7d1616b91ccc19
  Author: Mykola Malkov <mmalkov at sipwise.com>
  Date:   2018-07-30 (Mon, 30 Jul 2018)

  Changed paths:
    M sbin/netcardconfig

  Log Message:
  -----------
  Add support for non-interactive mode

Network device and parameters can be passed via environment variables
so script will create the network configuration without asking for
parameters.
Limitations - wlan and vlan configurations are not supported.

The list of parameters:
NET_DEV - name of network interface to configure.
METHOD - method of obtaining IP address. Can be dhcp|static|manual.
If both of these parameter defined then non-interactive mode is
used.

IPADDR - IP address for network interface.
NETMASK - netmask for network interface.
If method is 'static' or 'manual' then these parameters are mandatory.

GATEWAY - address of default route.
DNS - comma separated list of dns servers.

Add '--force' key to ifdown command before configuration of the interface.
It is required for interface reconfiguration.


Compare: https://github.com/grml/grml-network/compare/2e6d85025bfd...eebbac24ec64
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Git-commits mailing list