changed cat path
This commit is contained in:
parent
58203feb48
commit
09f22c706c
8
motd.sh
8
motd.sh
@ -19,25 +19,25 @@ output() {
|
||||
if [ -f "/usr/games/lolcat" ]; then lx="/usr/games/lolcat"; else lx="/usr/bin/lolcat"; fi
|
||||
case "$val" in
|
||||
0)
|
||||
/bin/cat $MOTDPATH/motd
|
||||
/usr/bin/cat $MOTDPATH/motd
|
||||
uname $UNAMEARG
|
||||
uptime $UPTIMEARG
|
||||
;;
|
||||
|
||||
1)
|
||||
/bin/cat $MOTDPATH/motd | $lx
|
||||
/usr/bin/cat $MOTDPATH/motd | $lx
|
||||
uname $UNAMEARG | $lx
|
||||
uptime $UPTIMEARG | $lx
|
||||
;;
|
||||
|
||||
2)
|
||||
/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'
|
||||
/usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'
|
||||
uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'
|
||||
uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'
|
||||
;;
|
||||
|
||||
3)
|
||||
/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
/usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user