2 # ==============================================================================
3 # portsreinstall library script
4 # Overlay onto lib/libtemp.sh for portsreinstall-chroot-mount
5 # - Temporary directory and signal trapping -
6 # Copyright (C) 2018 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
7 # This software is distributed under the 2-Clause BSD License.
8 # ==============================================================================
10 # ============= Set the termination process =============
11 temp_setup_terminate_process ()
13 temp_terminate_process ()
17 [ $opt_batch_mode = yes -o $errno -eq 0 ] && return
21 message_echo "INFO: Terminated at `message_timestamp`."
23 message_echo " You can safely rerun to continue."
25 message_echo "INFO: Aborted at `message_timestamp`."
27 message_echo " You may rerun to continue after manually resolving the problem."