Skip to content

Instantly share code, notes, and snippets.

Embed
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.
#!/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
You can’t perform that action at this time.