Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick script to convert networkmanager openvpn config files to have lowercase cipher names. To fix a weird case-sensitive bug.
grep -rl "cipher=[A-Z0-9\-]\+$" /etc/NetworkManager/ | while read -r line; do
sed -i 's/cipher=\(.*\)/cipher=\L\1/' "$line"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment