summaryrefslogtreecommitdiff
path: root/contrib/scripts
Commit message (Collapse)AuthorAgeFilesLines
* contrib: add -h option to NM-logThomas Haller2018-02-121-3/+20
| | | | | | | Pass "-h" to highlight individual words. "-h" stands for "highlight". $ NM-log -h wlan0 j
* all: drop trailing spacesThomas Haller2018-02-071-1/+1
|
* platform: merge nm_platform_*_delete() delete functionsThomas Haller2017-12-111-1/+1
| | | | | | | | | | | | | It only makes sense to call delete() with NMPObjects that we obtained from the platform cache. Otherwise, if we didn't get it from the cache in the first place, we wouldn't know what to delete. Hence, the input argument is (almost) always an NMPObject in the first place. That is different from add(), where we might create a new specific NMPlatform* instance on the stack. For add() it makes slightly more sense to have different functions depending on the type. For delete(), it doesn't.
* contrib: use less in NM-log to pre-process inputThomas Haller2017-11-211-2/+2
| | | | | | | GNU less supports filters. That makes it nice to use instead of cat. Also, less is well suited for output to a pipe. With this, `NM-log nm-log.txt.gz` works as you would expect
* contrib/scripts: fix coloring for platform messages in NM-log for old logsThomas Haller2017-10-031-1/+1
| | | | | | | | Older logfiles contain platform: route: adding or updating IPv4 route: 10.1.0 Hightlight that too.
* contrib/scripts: update coloring for platform messages in NM-log (2)Thomas Haller2017-09-251-1/+1
| | | | Fixes: 9344013977bee9d17413a4ab18ad13a4b2244ac3
* contrib/scripts: update coloring for platform messages in NM-logThomas Haller2017-09-251-1/+1
|
* contrib/NM-log: don't use exec in bash functionsThomas Haller2017-09-081-2/+2
| | | | | When sourcing the file, using exec inside NM-show-journal is a bad idea, because it replaces the calling shell.
* contrib/NM-log: don't run less with --quit-on-intr argumentThomas Haller2017-09-071-1/+1
| | | | | I find it annoying when ^C exits less and it prompts me to often do `NM-log | less -R` instead.
* contrib/NM-log: colorize warnings and errors in red (fix)Thomas Haller2017-09-071-3/+3
| | | | | Must not colorize the trailing space, otherwise the following " device" will no longer match.
* contrib/NM-log: colorize warnings and errors in redThomas Haller2017-09-071-1/+3
| | | | | | | | - remove "\r\n" line endings - colorize <warn> and <error> in red - extend matching the info levels to include the timestamp. This (intentionally) will no longer highlight messages from ModemManager, which don't include a timestamp.
* contrib/NM-log: improve script and make it sourceableThomas Haller2017-09-071-22/+36
| | | | | | | | | | - use "grep -a" so that grep doesn't refuse to work in binary input. - make the script source-able to only define the NM-colorize and NM-show-journal - In case the script is sourced, it also defines a NM-log function, which does the same as the script itself. - rename internal functions so that they have names starting with "NM" in case of sourcing.
* contrib/scripts: add NM-log helperThomas Haller2017-08-241-0/+52
| | | | To pretty print and colorize NetworkManager logfiles.
* contrib: add macsec test scriptBeniamino Galvani2017-01-161-0/+102
|
* nm-import-openvpn: sort the options alphabeticallyJiří Klimeš2016-11-101-14/+14
|
* nm-import-openvpn: remove old code for 'dev' optionJiří Klimeš2016-11-101-9/+0
|
* nm-import-openvpn: parse quoted string as a single wordJiří Klimeš2016-11-101-4/+21
| | | | | It is necessary, for example, for this to work: verify-x509-name "C=US, L=Cambridge, CN=GNOME, emailAddress=networkmanager-list@gnome.org" subject
* nm-import-openvpn: import 'verify-x509-name' optionJiří Klimeš2016-11-101-0/+11
| | | | https://git.gnome.org/browse/network-manager-openvpn/commit/?id=b51b3562ce079cc0be426e968fe1c90faadc0efd
* nm-import-openvpn: improve importing 'comp-lzo' optionJiří Klimeš2016-11-101-1/+11
| | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=769177 https://bugzilla.redhat.com/show_bug.cgi?id=1355688 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833166 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=62bdd278d69cc396479af9d05a0b776d5ad386bf
* nm-import-openvpn: improve parsing and checking 'route' optionJiří Klimeš2016-11-101-7/+49
|
* nm-import-openvpn: import 'ns-cert-type' optionJiří Klimeš2016-11-101-0/+1
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=719430 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=644e55ed404edbc953e323d13c57297b53cc0f8b
* nm-import-openvpn: import 'tls-cipher' optionJiří Klimeš2016-11-101-4/+6
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=763484 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=d7a84afe1d1948c7990a08b18913e65550c222a0
* nm-import-openvpn: import 'max-routes' optionJiří Klimeš2016-11-101-1/+2
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=720097 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=c4d45e51280d5b0cb8c5e8f826d68c3262162080
* nm-import-openvpn: import 'tun-ipv6' optionJiří Klimeš2016-11-101-0/+1
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=761907 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=ffda527d8a932f2e3419d6c64623540e5b190d9e
* nm-import-openvpn: import 'route' optionJiří Klimeš2015-12-071-37/+96
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=753578 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=4eb5f3ad43cdc62c6d4d254731e24c90b87ba91a
* nm-import-openvpn: import 'keepalive' optionJiří Klimeš2015-08-191-0/+9
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=651657 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=6afd16bcacd87a019e12f4df0d63a9e0e8c94e9e
* nm-import-openvpn: import 'ping', 'ping-exit' and 'ping-restart' optionsJiří Klimeš2015-08-191-0/+11
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=651657 https://git.gnome.org/browse/network-manager-openvpn/commit/?id=054cc997ca38e5d786859fa6d032c4404af3d28a
* nm-import-openvpn: improve error checkingJiří Klimeš2015-08-191-4/+5
|
* nm-import-openvpn: fix importing OpenVPN configuration with 'tls-client'Jiří Klimeš2015-08-191-2/+2
|
* nm-import-openvpn: import 'float' OpenVPN optionJiří Klimeš2015-05-281-0/+1
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=737108 Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
* contrib/scripts: fix importing 'remote' and 'remote-random' options for openvpnJiří Klimeš2015-05-191-7/+14
| | | | see https://bugzilla.redhat.com/show_bug.cgi?id=1194643
* contrib/scripts: nm-import-openconnect - script for importing OpenConnect ↵Jiří Klimeš2015-05-191-0/+277
| | | | VPN configs to NM
* contrib/scripts: nm-import-vpnc - script for importing Cisco VPN configs to NMJiří Klimeš2015-05-191-0/+432
|
* contrib/scripts: nm-import-openvpn - script for importing OpenVPN configs to NMJiří Klimeš2015-05-191-0/+394
Synopsis: $ nm-import-openvpn -i <infile1> <infile2> ... $ nm-import-openvpn <infile> <outfile> Put the file to NetworkManager: # cp <outfile> /etc/NetworkManager/system-connections/ # chmod 600 /etc/NetworkManager/system-connections/<outfile> # nmcli con load /etc/NetworkManager/system-connections/<outfile>