Skip to content

Instantly share code, notes, and snippets.

@pzl
Created June 21, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pzl/6f4b4d34fe1937e8fb95f6041a2a6d8c to your computer and use it in GitHub Desktop.
Save pzl/6f4b4d34fe1937e8fb95f6041a2a6d8c to your computer and use it in GitHub Desktop.
Quick script to convert networkmanager openvpn config files to have lowercase cipher names. To fix a weird case-sensitive bug.
#!/bin/bash
grep -rl "cipher=[A-Z0-9\-]\+$" /etc/NetworkManager/ | while read -r line; do
sed -i 's/cipher=\(.*\)/cipher=\L\1/' "$line"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment