#
SPOOL=@SPOOL@
+die()
+{
+ kill -1 $$ # use kill so trap handler is called
+}
+
SPEED=
DOFUSER=no
while [ x"$1" != x"" ] ; do
command to correct this problem.
EOF
- exit 1
+ die
fi
PORT=`ttyPort $TTY` # shortened tty port name
for x in $LOCKX; do
if [ -f $x ]; then
echo "Sorry, the device is currently in use by another program."
- exit 1
+ die
fi
done
echo "Unable to deduce DTE-DCE speed; check that you are using the"
echo "correct device and/or that your modem is setup properly. If"
echo "all else fails, try the -s option to lock the speed."
- @RM@ -f $JUNK; @RM@ -fr $TMPDIR
- exit 1
+ die
fi
echo " OK."
else
supports it.
EOF
- exit 1
+ die
}
echo ""
if [ "$ProtoType" != "skel" ]; then
prompt "Do you want to continue using the skeletal configuration file [yes]?"
read x
- isOK $x || exit 1
+ isOK $x || die
ProtoType=skel;
proto=$MODEMCONFIG/$ProtoType;
if [ ! -f $proto ]; then
is nothing that I can do without some kind of prototype config file;
I'm bailing out...
EOF
- exit 1
+ die
fi
else
echo "There is nothing more that I can do; I'm bailing out..."
- exit 1
+ die
fi
fi
echo "*** The original config file is unchanged; I'm terminating before"
echo "*** I do something stupid."
echo ""
- exit 1
+ die
fi
#
else
echo ""
echo "*** Unable to create fifo \"$FIFO\"; terminating."
- exit 1
+ die
fi
}
$CHOWN $FAX $FIFO; $CHGRP $faxGID $FIFO; $CHMOD 600 $FIFO
echo "*** Sorry, something went wrong building $SCHEDCONFIG.new."
echo "*** The original config file is unchanged; check your disk space?"
echo ""
- exit 1
+ die
fi
fi
boom()
{
$RM $JUNK
+ # boom can be called before TMPDIR is set
+ if test x$TMPDIR != x; then
+ $RM -r $TMPDIR
+ fi
exit 1
}
if [ "$ok" != skip ]; then
test -f $PROMPTS || (
${NOCLOBBER_ON}
- > $PROMPTS || exit 1
+ > $PROMPTS || boom
${NOCLOBBER_OFF}
compilePrompts>$PROMPTS<<EOF
# CountryCode Country code