From 859b96eb88031dee0474625b1b8107250bc906a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 1 Sep 2025 15:21:19 +0300 Subject: [PATCH] Beautification of Init script --- init.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/init.sh b/init.sh index 8ad7ace..3f1d26e 100755 --- a/init.sh +++ b/init.sh @@ -4,25 +4,36 @@ if [ ! "$BASH_VERSION" ] ; then exit 1 fi +underline=`tput smul` +nounderline=`tput rmul` +bold=$(tput bold) +normal=$(tput sgr0) + ti-header(){ - echo $(tput bold)$1$(tput sgr0) + echo ${bold}$1${normal} } +echo "${bold}" echo " -============================== - -PVJJK 1.VOS TJAS - Infra -Init Script - ------------------------------- + .-') _ ('-. .-') +( OO) ) ( OO ).-. ( OO ). +/ '._ ,--. / . --. /(_)---\_) +|'--...__) .-')| ,| | \-. \ / _ | +'--. .--'( OO |(_|.-'-' | |\ :\` \`. + | | | \`-'| | \| |_.' | '..\`''.) + | | ,--. | | | .-. |.-._) \\ + | | | '-' / | | | |\ / + \`--' \`-----' \`--' \`--' \`-----' " +echo " +PVJJK 1.VOS NIINISALO +TIETOJÄRJESTELMÄASENTAJIEN INTRA +INIT SCRIPT +" +echo -n "${normal}" stop () { -echo " -============================== -" - exit 1 }