Created
June 21, 2017 20:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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