X-Git-Url: http://git.linex4red.de/pub/pl2303-ft232-gpio.git/blobdiff_plain/463794aed37e9719bb3d3d8304e6deb354cc68ff..HEAD:/extra/serverctl?ds=inline diff --git a/extra/serverctl b/extra/serverctl index cb6dd9f..cd6b7f5 100755 --- a/extra/serverctl +++ b/extra/serverctl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh #Usage: serverctl action [servername] [minicom args] @@ -51,7 +51,7 @@ case $action in 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 ;; *) @@ -60,8 +60,8 @@ case $action in echo "Valid actions are: " echo " list" echo " reboot" - echo " shutdown" - echo " poweron" + echo " on" + echo " off" echo " term" ;; esac