Remove Ctrl-z trap

This commit is contained in:
natemaia 2019-03-23 12:24:12 -07:00
parent 4f3f9b8f03
commit 0d34b83974

View File

@ -5,7 +5,7 @@
# Some ideas and code reworked from other resources # Some ideas and code reworked from other resources
# AIF, Cnichi, Calamares, Arch Wiki.. Credit where credit is due # AIF, Cnichi, Calamares, Arch Wiki.. Credit where credit is due
VER="2.0.28" # version VER="2.0.29" # version
DIST="ArchLabs" # distributor DIST="ArchLabs" # distributor
MNT="/mnt" # mountpoint MNT="/mnt" # mountpoint
ANS="/tmp/ans" ANS="/tmp/ans"
@ -19,7 +19,7 @@ ANS="/tmp/ans"
# root partition, eg/ /dev/sda2 # root partition, eg/ /dev/sda2
ROOT_PART='' ROOT_PART=''
# boot partition, required on UEFI, eg. /dev/sda1 # boot partition, required on UEFI eg. /dev/sda1
BOOT_PART='' BOOT_PART=''
# device used for some bootloader install process, eg. /dev/sda # device used for some bootloader install process, eg. /dev/sda
@ -2370,19 +2370,6 @@ sigint()
die 1 die 1
} }
sigtstp()
{
printf "\n^Z caught, cleaning up before backgrounding...\n"
tput cnorm
if [[ $TERM == 'linux' ]]; then
colors=("\e]P0191919" "\e]P1D15355" "\e]P2609960" "\e]P3FFCC66"
"\e]P4255A9B" "\e]P5AF86C8" "\e]P62EC8D3" "\e]P7949494" "\e]P8191919" "\e]P9D15355"
"\e]PA609960" "\e]PBFF9157" "\e]PC4E88CF" "\e]PDAF86C8" "\e]PE2ec8d3" "\e]PFE1E1E1")
printf "%b" "${colors[@]}" && clear && unset col
fi
kill -s TSTP $$ # pass through the signal
}
print4() print4()
{ {
local str="$*" local str="$*"
@ -2559,8 +2546,6 @@ elif [[ $1 =~ (-d|--debug) ]]; then
fi fi
trap sigint INT # ^C trap cleanup trap sigint INT # ^C trap cleanup
trap sigtstp TSTP # ^Z trap cleanup
system_identify system_identify
system_devices system_devices