1 2 3 4 5 6 7 8 9
splash () { clear echo "Welcome to xilinux" } [ "$(fgconsole 2>/dev/null)" = "1" ] && $HOME/installer.sh splash