Skip to content

dinnerisserved/captiveportal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Captive Portal Script

This repository contains two scripts designed to manage network settings and automate the process of handling captive portals. The scripts are divided into two parts: a root-level script (captiveportal.sh) and a user-level script (captiveportal_user.sh).

Description

  • Root Script (captiveportal.sh): This script performs system-level network configuration tasks and should be executed with sudo.
  • User Script (captiveportal_user.sh): This script handles user-level tasks, such as opening URLs in a web browser. It should be run without sudo.

Usage

1. Root Script

Run the root script with superuser privileges to perform necessary system configurations:

sudo ./captiveportal.sh

After completion, the script will prompt you to run the user-level script.

2. User Script

Run the user script without superuser privileges to open required URLs in your default web browser:

./captiveportal_user.sh

Scripts

captiveportal.sh

This script includes tasks such as managing network connections and firewall settings. It's run with sudo and does not require any arguments.

captiveportal_user.sh

This script is responsible for opening URLs in your default web browser. It is run without sudo to ensure proper integration with the user's desktop environment.

Installation

Clone the repository or download the scripts directly. Ensure both scripts are executable:

chmod +x captiveportal.sh
chmod +x captiveportal_user.sh

Requirements

  • These scripts are intended for use on Linux systems with NetworkManager and UFW (Uncomplicated Firewall).
  • Ensure xdg-utils is installed for URL handling.

Contributing

Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.

License

Distributed under the MIT License. See LICENSE for more information.

Project Link: https://github.com/dinnerisserved/captiveportal


About

Force captive portals to reload & login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages