From ace4f4e56406f2754b142b4252f0411636b5b49d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 8 Dec 2010 20:19:41 +0100 Subject: move executable scripts to scripts/ --- scripts/reboot.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/reboot.php (limited to 'scripts/reboot.php') diff --git a/scripts/reboot.php b/scripts/reboot.php new file mode 100644 index 0000000..a7be1be --- /dev/null +++ b/scripts/reboot.php @@ -0,0 +1,23 @@ + +* @license AGPL v3 +* @link http://cweiske.de/linksys-wrt3g-tools.htm +*/ +require_once dirname(__FILE__) . '/config.php'; +require_once 'Wrt3g.php'; + +try { + $w = new Wrt3g(); + $resp = $w->reboot(); + echo $resp->getStatus() . ' ' . $resp->getReasonPhrase() . "\n"; +} catch (Exception $e) { + echo 'Error: ' . $e->getMessage() . "\n"; +} +?> \ No newline at end of file -- cgit v1.2.3