
onexit.nos

    This is a hardcoded filename xNos looks for during shutdown. It must
    be placed in the xNos home directory. It is a simple script file of
    commands for xNos to execute after the 'exit' command has been given
    prior to xNos returning to Dos.

        ftnopt idletime 0
        ppp pp0 lcp close
        pause 2
        param pp0 down
        pause 2
        param pp0 up
        comm pp0 "atz"
        pause 2
        comm pp0 "ath1"


        'ftnopt idletime 0' inactivates the ftn_monitor to prevent the
            monitor from calling the exit routine twice. This is only if
            'ftnopt mode' is set to 'on'.
        'ppp pp0 lcp close' politely tells the remote connection goodbye
            and lets them close (hangup) their end.
        'param pp0 down|up' forces dropping the DTR and reenables command
            mode.
        'comm pp0 "atz"' resets the modem to it's default parameters.
        'comm pp0 "ath1" takes the modem offhook and lets remote dial-ins
            know we're not available.
        The various pauses are just to allow for hardware reaction time
            and may or may not be needed or neccessarily the best values
            for any given system.

