cygnan / reboot-airstation

An ash script to reboot a Buffalo AirStation router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reboot-airstation

MIT License

An ash script to reboot a Buffalo AirStation router.

Features

  • Implementation of reboot functionality of an AirStation router's web client

    As an AirStation router doesn't provide any standard API for communicating, this script is just a shortcut to reboot functionality of the router's web client.

  • Optimized for embedded Linux environment

    This script uses neither Wget nor cURL command. It's useful for embedded Linux environment. Some busybox binaries are very limited, so cURL command is not there and Wget command can't send POST requests. This script uses netcat command instead, so runs successfully in that kind of environment.

A supported model

  • WZR-HP-G301NH

    Note: Only Japanese firmware supported.

Even if your router isn't listed above, this script should probably work if it has the UI like below.

UI

Usage

  1. Download reboot.sh.

  2. Open reboot.sh with a text editor, replace 192.168.11.1 with your router's IP address, and insert its password like below if changed.

    GIF

  3. After saving it, type sh ./reboot.sh with Bash or a terminal emulator in the directory the script exists.

    Note: If you use a Debian-based Linux OS (e.g., Debian, Ubuntu), type bash ./reboot.sh instead.

Contribution

You can open issues or submit pull requests for bugs you've found.

License

Copyright © 2017 Cygnan
Licensed under the MIT License, see LICENSE.md.

About

An ash script to reboot a Buffalo AirStation router

License:MIT License


Languages

Language:Shell 100.0%