]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Escape periods in sed command. Same problem as reported in bug 609
authorTim Rice <tim@multitalents.net>
Wed, 22 Dec 2004 00:28:32 +0000 (00:28 +0000)
committerTim Rice <tim@multitalents.net>
Wed, 22 Dec 2004 00:28:32 +0000 (00:28 +0000)
etc/probemodem.sh.in

index cf9b4d7ef12b56f91d2e994cd4464144209467b5..8425d658f85b6b52a58d813d32435b85866584e8 100644 (file)
@@ -516,7 +516,7 @@ if [ "$RESULT" = "OK" ]; then
     # Class 1.0 = 4; Class 2.1 = 5;   
 
     RESPONSE="`echo $RESPONSE | $SED -e 's/[()]//g' \
-       -e 's/2.0/3/g' -e 's/1.0/4/g' -e 's/2.1/5/g'`";
+       -e 's/2\.0/3/g' -e 's/1\.0/4/g' -e 's/2\.1/5/g'`";
     MODEMCLASSES="";
     for CLASS in 1 2 3 4 5; do
        if [ "`echo $RESPONSE | $GREP $CLASS`" != "" ]; then