Skip to content

Automatize hotspot turning on and off depending on ethernet and wifi connections.

License

Notifications You must be signed in to change notification settings

tamas646/myautohotspot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

myautohotspot

Automatize hotspot turning on and off depending on ethernet and wifi connections.

Usage

This script can be run in two modes:

  • if the MY_FILTER variable is set, then:
    • the Hotspot will turn on if the WiFi interface and the ethernet interface connects to the same network as defined in the variable
    • the Hotspot will turn off if the ethernet interface disconnects
  • if the MY_FILTER variable is not set, then
    • the Hotspot will turn on if the ethernet interface connects to a network
    • the Hotspot will turn off if the ethernet interface disconnects

Before you start using it, you have to change the settings in /etc/myautohotspot/config to fit your hardware.

Installation

  • You can either download and install the deb package or use the source code and setup it yourself.

  • If you wish, you can install it from my apt repository too:

    sudo echo "deb [signed-by=/usr/share/keyrings/ptamas-pub.gpg] http://apt.ptamas.hu/main/ ./" > /etc/apt/sources.list.d/apt.ptamas.list
    wget -qO - https://apt.ptamas.hu/ptamas-pub.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ptamas-pub.gpg > /dev/null
    apt update && apt install myautohotspot

About

Automatize hotspot turning on and off depending on ethernet and wifi connections.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages