root / arch-scripts / init.sh @ 8e3ab0e2
History | View | Annotate | Download (398 Bytes)
1 |
#! /bin/bash |
---|---|
2 |
|
3 |
########################## |
4 |
# Function definitions # |
5 |
########################## |
6 |
|
7 |
txtrst=$(tput sgr0) # Reset text color |
8 |
txtred=$(tput setaf 1) # Make text red |
9 |
txtgrn=$(tput setaf 2) # Make text green |
10 |
|
11 |
red_echo(){ |
12 |
echo -e "${txtred}${1}${txtrst}" |
13 |
} |
14 |
|
15 |
grn_echo(){ |
16 |
echo -e "${txtgrn}${1}${txtrst}" |
17 |
} |
18 |
|
19 |
#ARCH_SCRIPTS must be already set by the caller function |
20 |
XSEG=$ARCH_SCRIPTS/../xseg |
21 |
|