Skip to content

Converter for nm-settings-ifcfg-rh-Files to nm-settings-keyfile-Files

Notifications You must be signed in to change notification settings

sedrubal/nm-settings-ifcfg-rg-to-keyfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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.

Usage

  1. 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.
  2. Move them to /etc/NetworkManager/system-connections/
  3. chown root:root /etc/NetworkManager/system-connections/*
  4. chmod u=rw,g=o= /etc/NetworkManager/system-connections/*
  5. nmcli connection reload
  6. Watch journal for warnings and error messages
    • If there are any warnings feel free to open an issue and attach your ifcfg-file.

License

(c) 2020 sedrubal - MIT

About

Converter for nm-settings-ifcfg-rh-Files to nm-settings-keyfile-Files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages