diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-12-16 19:15:38 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2010-12-16 19:15:38 +0100 |
| commit | 33529b6e44561a86bfae8dd289779f2c3ce01c6e (patch) | |
| tree | 29bbf0eda02fb05bad9aa9c7462b75deefdd78b0 /scripts | |
| parent | cd764657b069da8851f826dfcf612fb7de2ece9a (diff) | |
| download | linksys-wrt3g-tools-33529b6e44561a86bfae8dd289779f2c3ce01c6e.tar.gz linksys-wrt3g-tools-33529b6e44561a86bfae8dd289779f2c3ce01c6e.zip | |
shorten command names
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/linksys-wrt3g.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php index eb056a9..219e081 100755 --- a/scripts/linksys-wrt3g.php +++ b/scripts/linksys-wrt3g.php @@ -89,16 +89,16 @@ $stCmd = $parser->addCommand( ) ); $stCmd = $parser->addCommand( - 'cardstatus', + 'card', array( - 'aliases' => array('c', 'cs'), - 'description' => 'Show the card/SIM status' + 'aliases' => array('c'), + 'description' => 'Show the PC card/SIM status' ) ); $stCmd = $parser->addCommand( - 'allstatus', + 'all', array( - 'aliases' => array('a', 'as'), + 'aliases' => array('a'), 'description' => 'Show all status details' ) ); @@ -143,13 +143,13 @@ try { } break; - case 'allstatus': - case 'cardstatus': + case 'all': + case 'card': case 'status': default: - if ($result->command_name == 'allstatus') { + if ($result->command_name == 'all') { $arStatus = $router->getFullStatus(); - } else if ($result->command_name == 'cardstatus') { + } else if ($result->command_name == 'card') { $arStatus = $router->getCardStatus(); } else { $arStatus = $router->getConnectionStatus(); |
