Skip to content

Instantly share code, notes, and snippets.

@pabluk
Created April 10, 2012 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pabluk/2351312 to your computer and use it in GitHub Desktop.
Save pabluk/2351312 to your computer and use it in GitHub Desktop.
Bouygues Box Reboot
#!/bin/bash
#============================================================================
#
# FILE: bbox-reboot.sh
# USAGE: ./bbox-reboot.sh
#
# TITLE: Bouygues Box Reboot (Bouygues is a French ISP)
# AUTHOR: Pablo SEMINARIO <pabluk@gmail.com>
# VERSION: 0.1
# LICENSE: GPL v3
# DESCRIPTION: Sends a HTTP request to restart the BBox router.
# MODEL TESTED: SAGEMCOM F@ST 3504b firmware: Fast3504_5B00IG version: 1.0.0
# URL: https://gist.github.com/2351312
#
#============================================================================
BBOX_IPADDR=192.168.0.1
FORMDATA="page=infosys_main&action=reboot&sessionid="
ADMIN_URL=http://$BBOX_IPADDR/index.cgi?page=infosys_main
curl --silent --show-error --data $FORMDATA $ADMIN_URL > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment