summaryrefslogtreecommitdiff
path: root/comms/minicom
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2004-07-10 22:41:39 +0000
committersalo <salo@pkgsrc.org>2004-07-10 22:41:39 +0000
commitbeecc99ca59e16385d9d642ea4fb3cb58feff380 (patch)
treee47fe5b4c82e746da9ec98f959b21005d03cdb2c /comms/minicom
parent80cb76bb0f8cb5aa1536bc6bc22603dcfbd84082 (diff)
downloadpkgsrc-beecc99ca59e16385d9d642ea4fb3cb58feff380.tar.gz
Replace test -e with -h and -c respectively.
Addresses part of PR pkg/26235 by Georg Schwarz.
Diffstat (limited to 'comms/minicom')
-rw-r--r--comms/minicom/scripts/create-dev-link7
1 files changed, 3 insertions, 4 deletions
diff --git a/comms/minicom/scripts/create-dev-link b/comms/minicom/scripts/create-dev-link
index a9c798ee98c..b79b7dae49b 100644
--- a/comms/minicom/scripts/create-dev-link
+++ b/comms/minicom/scripts/create-dev-link
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: create-dev-link,v 1.4 1998/08/07 10:36:44 agc Exp $
+# $NetBSD: create-dev-link,v 1.5 2004/07/10 22:41:39 salo Exp $
#
# pre-install script for Minicom port to FreeBSD 2.x
@@ -26,8 +26,7 @@ echo "I (the porter) have adopted Satoshi Asami's lead of using /dev/modem."
echo ""
echo -n "Lets see if you have too..."
-# might want to test for ``-h'' rather than ``-e''
-if [ -e /dev/modem ]; then
+if [ -h /dev/modem -o -c /dev/modem ]; then
echo " Good you do:"
/bin/ls -l /dev/modem
else
@@ -46,7 +45,7 @@ else
echo -n "Enter the number X from ttyX above : "
read bar
if [ ${bar} ] ; then
- if [ -e /dev/tty${bar} ]; then
+ if [ -c /dev/tty${bar} ]; then
ln -s /dev/tty${bar} /dev/modem
else
echo "Error: /dev/tty${bar} doesn't exist."