-
Notifications
You must be signed in to change notification settings - Fork 17
/
10-skybian-header
29 lines (24 loc) · 1.13 KB
/
10-skybian-header
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#
# Copyright (c) Authors: http://www.armbian.com/authors
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
# DO NOT EDIT THIS FILE but add config options to /etc/default/armbian-motd
# any changes will be lost on board support package update
#
# Modified adn renamed by @evanlinjin
# Based on: https://github.com/armbian/build/blob/master/packages/bsp/common/etc/update-motd.d/10-armbian-header
THIS_SCRIPT="skybian-header"
MOTD_DISABLE=""
[[ -f /etc/default/armbian-motd ]] && . /etc/default/armbian-motd
for f in $MOTD_DISABLE; do
[[ $f == $THIS_SCRIPT ]] && exit 0
done
. /etc/os-release
. /etc/armbian-release
KERNELID=$(uname -r)
TERM=linux toilet -f standard -F metal " Skybian"
echo -e "Welcome to Skybian, the Official miner OS for Skycoin on the $BOARD_NAME"
echo -e "Based on \e[0;91mArmbian \x1B[0m$(if [[ $ID == debian ]]; then echo ${PRETTY_NAME##*\(} | sed -e 's/^.*Linux //' | sed "s/\/.*//" | sed 's|)||'; else echo -n ${VERSION_CODENAME^};fi) with \e[0;91mLinux $KERNELID\x1B[0m\n"