]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 74] - stty problem on linux. Changes to faxaddmodem should be applied
authorDarren Nickerson <darren.nickerson@ifax.com>
Sun, 29 Oct 2000 11:25:38 +0000 (11:25 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Sun, 29 Oct 2000 11:25:38 +0000 (11:25 +0000)
           here as well. ReportedBy: giulioo@pobox.com

etc/probemodem.sh.in

index 8db0d816e4d1d9b7fa70e3ac094471dc134044f1..08a717bbeaf39c603915842bba61f39ec3711df7 100644 (file)
@@ -196,7 +196,10 @@ SendToModem()
 {
     COMMAND=$*
     sleep 1                                    # wait for previous kill
-    onDev $STTY 0; sleep 1                     # reset the modem (hopefully)
+    case $TARGET in    
+    *-linux*)  ;;
+    *) onDev $STTY 0; sleep 1  ;;              # reset the modem (hopefully)
+    esac
                                                # start listening for output
     onDev -c "$STTY clocal && exec $CAT $tdev"; sleep 2
     #
@@ -281,8 +284,10 @@ Try()
 {
     TRYCOMMAND=$*
     sleep 1                                    # wait for previous kill
-    onDev $STTY 0                              # reset the modem (hopefully)
-    sleep 1
+    case $TARGET in    
+    *-linux*)  ;;
+    *) onDev $STTY 0; sleep 1  ;;              # reset the modem (hopefully)
+    esac
     onDev -c "$STTY clocal && exec $CAT $tdev" # start listening for output
     sleep 1
     onDev $STTY -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal $SPEED