Code Monkey home page Code Monkey logo

horndis-reloader's Introduction

HoRNDIS-Reloader

Its a little daemon that listen to USB subsystem and reload HoRNDIS kext when a usb tether device is inserted.

WHY

Since OS X 10.11 El Capitan HoRNDIS doesn't work as is. You have to unload and reload the kext after inserting your phone. Same issue remains in macOS 10.12 Sierra.

It is painful to manually unload/load kext every time you plugin your phone for tethering. So this little utility does it for you.

HOW

Edit the included plist file and add your phone's vendor and product id to it. You can add multiple device ids. Also change the Path to where your HoRNDIS-Reloader binary is located.

<array>
    <string>/Users/FooBar/HoRNDIS-Reloader/HoRNDIS-Reloader</string>
    <string>0x2717:0x0100</string>
    <string>0x2717:0x0200</string>
    <string>0x2717:0x0300</string>
</array>

You can find your phone's device ids in About This Mac -> System Information -> USB.

Now copy it to /Library/LaunchDaemons enable the daemon.

sudo cp com.sarimkhan.horndis.reloader.plist /Library/LaunchDaemons/
sudo launchctl load /Library/LaunchDaemons/com.sarimkhan.horndis.reloader.plist

It will run after every boot. You can check its log in Console app.

Screenshot

HoRNDIS-Reloader ScreenShot

Source

Checkout the repo and run

go build

You need to have xcode installed as it uses CoreFoundation and IOKit libraries via cgo.

Licence

Licensed under Mozilla Public License 1.1 ("MPL"), an open source/free software license.

horndis-reloader's People

Contributors

sarim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.