1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#! /bin/sh -e
## 09nonfaxFCLASSerror by Nigel Williams
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixed error message when non-fax-capable modem supports +FCLASS command
## DP: (Closes: #202668)
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
exit 0
@DPATCH@
diff -r -U3 efax-0.9a/efax.c efax-0.9a+patch/efax.c
--- efax-0.9a/efax.c 2000-11-15 04:22:09.000000000 +1100
+++ efax-0.9a+patch/efax.c 2003-07-24 16:56:08.000000000 +1000
@@ -2069,6 +2069,7 @@
if ( strinresp ( "2.0" ) ) c20 = 1 ;
else if ( strinresp ( "2" ) ) ;
else if ( strinresp ( "1" ) ) c1 = 1 ;
+ else if ( strinresp ( "0" ) ) err = msg ("E3 modem does not support fax" ) ;
else err = msg ("E3 can't determine fax modem class support" ) ;
if ( strstr ( model, "Sportster" ) ) { /* USR Sporsters are buggy */
c1 = 1 ;
|