Giter VIP home page Giter VIP logo

netctl2iwd's Introduction

netctl2iwd

Build Status Crates.io

Convert your netctl wireless profiles to iwd profiles.

Iwd is a recent projected intended to replace wpa_supplicant. It can be used with ConnMan and NetworkManager with very little changes. However, if you previously used netctl for your wifi needs, you will need to write out all the profiles again. This is where this tool comes in.

Installation

git clone https://github.com/bertptrs/netctl2iwd
cd netctl2iwd
cargo install

…or cargo install netctl2iwd or use this AUR package or find a way to convice a butterfly to make the bytes magically appear.

Usage

netctl2iwd -i /etc/netctl

You can use this program to convert specific netctl profiles or a folder of netctl profiles. The program does not specifically need root permissions, but it does need to read (and write) the profiles.

The default destination directory is /var/lib/profiles which is where the profiles should be stored. You can change the default directory for output files with the -o [OUTPUT DIR] directive.

For input, you can either specify each file individually, or you can specify a profile directory with the -i [INPUT DIR] option.

To run this program without root, you need to

  • copy your profile files to another directory
  • make the copies readable for your user
  • create an output directory
  • run the program with the alternative profile directory and output directory
  • copy the generated profiles to the proper directory, optionally after manual inspection

Limitations

netctl profiles are actually bash files, however, this tool parses them as if they were .ini files. This works okay for simple profiles (as generated by wifi-menu, for instance) but may fail for more complicated set-ups.

Because of this, WPA-enterprise profiles will fail to parse since the wpa_config code is a bash array. This might be fixed in future versions.

netctl2iwd's People

Contributors

bertptrs avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.