projects
/
pub
/
pl2303-ft232-gpio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First support PL2303-HXD GPIO 2 & 3
[pub/pl2303-ft232-gpio.git]
/
extra
/
serverctl
diff --git
a/extra/serverctl
b/extra/serverctl
index
cb6dd9f
..
cd6b7f5
100755
(executable)
--- a/
extra/serverctl
+++ b/
extra/serverctl
@@
-1,4
+1,4
@@
-#!/bin/
ba
sh
+#!/bin/sh
#Usage: serverctl action [servername] [minicom args]
#Usage: serverctl action [servername] [minicom args]
@@
-51,7
+51,7
@@
case $action in
shift
miniargs=$*
[ -z "$*" ] && miniargs="-b 115200"
shift
miniargs=$*
[ -z "$*" ] && miniargs="-b 115200"
- tty=/dev/`list_servers|cut -d";" -f3`
+ tty=/dev/`list_servers|
grep $node|
cut -d";" -f3`
minicom -o -D $tty $miniargs
;;
*)
minicom -o -D $tty $miniargs
;;
*)
@@
-60,8
+60,8
@@
case $action in
echo "Valid actions are: "
echo " list"
echo " reboot"
echo "Valid actions are: "
echo " list"
echo " reboot"
- echo "
shutdow
n"
- echo "
poweron
"
+ echo "
o
n"
+ echo "
off
"
echo " term"
;;
esac
echo " term"
;;
esac