1#
2# /etc/efax.rc
3#
4# Configuration file for fax(1)
5#
6
7OWNER=
8MODE=
9DCMD=
10VCMD=
11
12DEVICE_URI=`defaults read /Library/Preferences/com.apple.print.FaxPrefs device-uri`
13
14# verify it's a "fax://dev/" formated uri...
15if (echo "$DEVICE_URI" | grep -q "^fax://dev/"); then
16	# Remove scheme and path components...
17	DEV=`echo $DEVICE_URI | cut -c 11-`
18	DEVANSWER=`echo $DEV|sed -e "s/cu\.\(.*\)/tty.\1/g"`
19else
20	# Use default modem device...
21	DEV=cu.usbmodem
22	DEVANSWER=tty.usbmodem
23	echo "$0: using default device \"$DEV\"" >&2
24fi
25
26FROM=`defaults read /Library/Preferences/com.apple.print.FaxPrefs FaxNumber`
27if [ $? -ne 0 ]; then
28	echo "$0: can't read FaxPrefs FaxNumber" >&2
29fi
30
31ANSRINGS=`defaults read /Library/Preferences/com.apple.print.FaxPrefs RingCount`
32if [ "x$ANSRINGS" = "x" ]; then
33	echo "$0: can't read FaxPrefs RingCount" >&2
34	ANSRINGS="0"
35fi
36
37# HOME must be defined to get sites.py to add /Library... to sitedirs
38if [ "x$HOME" = "x" ]; then
39	export HOME=/tmp
40fi
41
42NOTIFY='/usr/libexec/fax/faxnotify $f $FILES 2>/dev/console'
43