![]() |
This is first try to quick band-aid for rpm upgrades (use grep -E, perl, so not ok for faxetup); tried rpm triggers but too much confusion, so falls back to %post %post ... ... # Upgrade from < 4.2.1: change x.y.z to x.y.z.[0-9]+ grep -E "^([0-9]+\.?|[0-9]+\.[0-9]+\.?|[0-9]+\.[0-9]+\.[0-9]\.?)$" \ /var/spool/hylafax/etc/hosts.hfaxd >/dev/null 2>&1 if [ $? = 0 ]; then # Note: . (dot in IP addr) should really be \. perl -pi.pre-4.2.1.rpmsave -e ' if (/^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\.?$/) { $_ = $1 . ".[0-9]+\n"; } elsif (/^([0-9]{1,3}\.[0-9]{1,3})\.?$/) { $_ = $1 . ".[0-9]+.[0-9]+\n"; } elsif (/^([0-9]{1,3})\.?$/) { $_ = $1 . ".[0-9]+.[0-9]+.[0-9]+\n"; } ' /var/spool/hylafax/etc/hosts.hfaxd || : fi exit 0 ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*