File: nm-tools

package info (click to toggle)
emacspeak 49.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,124 kB
  • sloc: lisp: 60,077; xml: 14,159; tcl: 1,332; cpp: 1,175; sh: 859; makefile: 754; python: 534; perl: 419
file content (13 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# Bash Functions  To  use nmcli:  -*- mode: sh -*-

# Usage: nm_add ssid passwd name
# Add a new wifi network

function nm_add () {
    nmcli dev wifi con $1 password $2  name $3
}

function nm_up () {
    nmcli conn up id $1
}