Converter for nm-settings-ifcfg-rh
-Files to nm-settings-keyfile
-Files
During my migration from Fedora to Arch-Linux I realized, that RedHat-Distros use a different file
format for NetworkManager connections (nm-settings-ifcfg-rh
).
The default connection file format is nm-settings-keyfile
.
As I found no easy way to migrate one file format into another, I wrote this script.
It may be possible (and this would certainly be the most recommendable way)
to install nm-settings-ifcfg
and import the old scripts.
But the required package is not available for Arch Linux.
- Convert your files using this script (
--help
is available)- There should be some helpful logging messages, that most probably tell you, that the script fails, because some functionality is not yet implemented. Open an issue if you need further properties and attach your ifcfg-file.
- Move them to
/etc/NetworkManager/system-connections/
chown root:root /etc/NetworkManager/system-connections/*
chmod u=rw,g=o= /etc/NetworkManager/system-connections/*
nmcli connection reload
- Watch journal for warnings and error messages
- If there are any warnings feel free to open an issue and attach your ifcfg-file.
(c) 2020 sedrubal - MIT