From 9670ba7c1328b028800895eba2151f1b29f6a077 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 28 Dec 2010 23:07:23 +0100 Subject: [PATCH] remove old scripts --- scripts/reboot.php | 24 ------------------------ scripts/status.php | 25 ------------------------- 2 files changed, 49 deletions(-) delete mode 100644 scripts/reboot.php delete mode 100644 scripts/status.php diff --git a/scripts/reboot.php b/scripts/reboot.php deleted file mode 100644 index 53b8b96..0000000 --- a/scripts/reboot.php +++ /dev/null @@ -1,24 +0,0 @@ - -* @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"; - exit(1); -} -?> \ No newline at end of file diff --git a/scripts/status.php b/scripts/status.php deleted file mode 100644 index b75a508..0000000 --- a/scripts/status.php +++ /dev/null @@ -1,25 +0,0 @@ - -* @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(); - $arStatus = $w->getStatus(); - foreach ($arStatus as $key => $value) { - echo $key . ': ' . $value . "\n"; - } -} catch (Exception $e) { - echo 'Error: ' . $e->getMessage() . "\n"; - exit(1); -} -?> \ No newline at end of file -- 2.30.2