summaryrefslogtreecommitdiff
path: root/io-tool
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-10-08 08:48:32 -0500
committerMike Fiore <mfiore@multitech.com>2014-10-08 08:48:32 -0500
commit13718072814328b8b119e3c30e4acf8607d62b28 (patch)
tree1b7f3c4d117f0b107514b66b754d801a6daffe92 /io-tool
parentf9010f0863063e6836394469edf43e86c98d49fe (diff)
downloadmts-io-13718072814328b8b119e3c30e4acf8607d62b28.tar.gz
mts-io-13718072814328b8b119e3c30e4acf8607d62b28.tar.bz2
mts-io-13718072814328b8b119e3c30e4acf8607d62b28.zip
mts-io-sysfs: update script to correctly show accessory card attributes
Diffstat (limited to 'io-tool')
-rwxr-xr-xio-tool/mts-io-sysfs24
1 files changed, 11 insertions, 13 deletions
diff --git a/io-tool/mts-io-sysfs b/io-tool/mts-io-sysfs
index 3961c03..3ecb100 100755
--- a/io-tool/mts-io-sysfs
+++ b/io-tool/mts-io-sysfs
@@ -76,15 +76,15 @@ usage() {
#items for SHOW
printf " SHOW-NAME := {\n" >&${out}
- for f in $MTS_IO_DIR/*;
+ for f in `find $MTS_IO_DIR/* -follow -maxdepth 1 -type f`;
do
- FILENAME=${f##*/}
+ FILENAME=${f##*/mts-io/}
case $FILENAME in
modalias )
;;
power )
;;
- subsystem )
+ subsystem* )
;;
uevent )
;;
@@ -97,9 +97,9 @@ usage() {
#items for STORE
printf " STORE-NAME := {\n" >&${out}
- for f in $MTS_IO_DIR/*;
+ for f in `find $MTS_IO_DIR/* -follow -maxdepth 1 -type f`;
do
- FILENAME=${f##*/}
+ FILENAME=${f##*/mts-io/}
case $FILENAME in
#mac addresses are read-only
mac-* )
@@ -108,7 +108,7 @@ usage() {
*-id )
;;
#hw-version is read-only
- hw-version )
+ *hw-version )
;;
#imei is read-only
imei )
@@ -117,17 +117,15 @@ usage() {
;;
power )
;;
- subsystem )
+ subsystem* )
;;
uevent )
;;
board-temperature )
;;
- extserial-dtr )
+ *adc[0-9] )
;;
- adc[0-9] )
- ;;
- din[0-9] )
+ *din[0-9] )
;;
gpi[0-9] )
;;
@@ -145,8 +143,8 @@ usage() {
printf " $FILENAME { 0 }\n" >&${out} ;;
reset-monitor )
printf " $FILENAME { pid short-signal long-signal [extra-long-signal] }\n" >&${out} ;;
- serial-mode )
- printf " $FILENAME { loopback | rs232 | rs422 | rs485 }\n" >&${out} ;;
+ *serial-mode )
+ printf " $FILENAME { loopback | rs232 | rs485-half | rs422-485-full }\n" >&${out} ;;
* )
printf " $FILENAME BOOLEAN\n" >&${out} ;;
esac