mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 14:21:27 +00:00
Allow disabling other MOTD scripts
This commit is contained in:
parent
1c2ae50b76
commit
98fb669ce3
2 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo -e "[\e[31m General system configuration\e[0m: \e[1marmbian-config\e[0m ]\n"
|
||||
THIS_SCRIPT="armbian-config"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
[[ -f /etc/default/armbian-motd ]] && . /etc/default/armbian-motd
|
||||
|
||||
for f in $MOTD_DISABLE; do
|
||||
[[ $f == $THIS_SCRIPT ]] && exit 0
|
||||
done
|
||||
|
||||
echo -e "[\e[31m General system configuration\e[0m: \e[1marmbian-config\e[0m ]"
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
THIS_SCRIPT="point-to-faq"
|
||||
MOTD_DISABLE=""
|
||||
|
||||
[[ -f /etc/default/armbian-motd ]] && . /etc/default/armbian-motd
|
||||
|
||||
for f in $MOTD_DISABLE; do
|
||||
[[ $f == $THIS_SCRIPT ]] && exit 0
|
||||
done
|
||||
|
||||
. /etc/armbian-release
|
||||
|
||||
printf "New to Armbian? Check the documentation first: \e[0;92mhttps://docs.armbian.com\x1B[0m\n\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue