Git Product home page Git Product logo

toggle-nic's Introduction

Build status

Usage

List interfaces:

toggle-nic --list

Disable interface #11:

toggle-nic 11 --disable

Enable interface #11:

toggle-nic 11 --enable

Build instructions

Visual Studio 2017+

  1. Launch Visual Studio and open the repository, the IDE will automatically detect the CMake project.

  2. Build the project.

nmake

  1. Open a command prompt window inside the repository, with the MSVC environment initialized. You can do that by opening one of the Tools Command Prompt for VS shortcuts under the Visual Studio folder in the Start menu. The shortcuts point to the .bat files that can be found in VC/Auxiliary/Build, inside the Visual Studio installation directory. You can also open a "clean" command prompt window and run one of the scripts (depending on the architecture you want to build the project for). For example, if you want to build a 64 bit binary and have Visual Studio 2019 Community, you would have to run:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

The path differs if you have a different Visual Studio version (e.g. Professional) or if you changed it during the installation.

  1. Create a working directory for CMake and enter it:
mkdir build && cd build
  1. Run CMake with the NMake Makefiles generator (otherwise it generates a Visual Studio solution):
cmake -G "NMake Makefiles" ..
  1. Build:
nmake

MSYS2

  1. Open either MSYS2 MinGW 32-bit or MSYS2 MinGW 64-bit and go inside the repository.

  2. Create a working directory for CMake and enter it:

mkdir build && cd build
  1. Run CMake:
cmake -G "MSYS Makefiles" ..
  1. Build:
mingw32-make

toggle-nic's People

Contributors

davidebeatrici avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kandyjam

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.