aboutsummaryrefslogtreecommitdiff
path: root/scripts/minicom.sh
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-17 17:34:02 -0600
committerRob Landley <rob@landley.net>2007-12-17 17:34:02 -0600
commitc49650d6914a3ddb151fe93b1bfed8136c0151d7 (patch)
tree2fed5097c93a5b5bf966323ca9f7c6775830317e /scripts/minicom.sh
parente25e8b5fbb55e5ae549eb13b0c6dd7c560e22b0c (diff)
downloadtoybox-c49650d6914a3ddb151fe93b1bfed8136c0151d7.tar.gz
minicom.sh should check for a char device, not a file.
Diffstat (limited to 'scripts/minicom.sh')
-rwxr-xr-xscripts/minicom.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/minicom.sh b/scripts/minicom.sh
index b22e1056..58685c6d 100755
--- a/scripts/minicom.sh
+++ b/scripts/minicom.sh
@@ -2,7 +2,7 @@
# If you want to use toybox netcat to talk to a serial port, use this.
-if [ ! -f "$1" ]
+if [ ! -c "$1" ]
then
echo "Usage: minicom.sh /dev/ttyS0"
exit 1