git.cweiske.de
/
linksys-wrt3g-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd76465
)
shorten command names
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 16 Dec 2010 18:15:38 +0000
(19:15 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 16 Dec 2010 18:15:38 +0000
(19:15 +0100)
scripts/linksys-wrt3g.php
patch
|
blob
|
history
diff --git
a/scripts/linksys-wrt3g.php
b/scripts/linksys-wrt3g.php
index eb056a90fb7c14bde174ae37fc822f592013509b..219e081c1c87be924830d8e756b32e1c4a622dac 100755
(executable)
--- a/
scripts/linksys-wrt3g.php
+++ b/
scripts/linksys-wrt3g.php
@@
-89,16
+89,16
@@
$stCmd = $parser->addCommand(
)
);
$stCmd = $parser->addCommand(
)
);
$stCmd = $parser->addCommand(
- 'card
status
',
+ 'card',
array(
array(
- 'aliases' => array('c'
, 'cs'
),
- 'description' => 'Show the card/SIM status'
+ 'aliases' => array('c'),
+ 'description' => 'Show the
PC
card/SIM status'
)
);
$stCmd = $parser->addCommand(
)
);
$stCmd = $parser->addCommand(
- 'all
status
',
+ 'all',
array(
array(
- 'aliases' => array('a'
, 'as'
),
+ 'aliases' => array('a'),
'description' => 'Show all status details'
)
);
'description' => 'Show all status details'
)
);
@@
-143,13
+143,13
@@
try {
}
break;
}
break;
- case 'all
status
':
- case 'card
status
':
+ case 'all':
+ case 'card':
case 'status':
default:
case 'status':
default:
- if ($result->command_name == 'all
status
') {
+ if ($result->command_name == 'all') {
$arStatus = $router->getFullStatus();
$arStatus = $router->getFullStatus();
- } else if ($result->command_name == 'card
status
') {
+ } else if ($result->command_name == 'card') {
$arStatus = $router->getCardStatus();
} else {
$arStatus = $router->getConnectionStatus();
$arStatus = $router->getCardStatus();
} else {
$arStatus = $router->getConnectionStatus();