Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Banner | Add option to disable credits #5355

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions dietpi/func/dietpi-banner
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@
'MOTD'
'VPN status'
'Large hostname'
'Print credits'

)

# Set defaults: Disable CPU temp by default in VMs
if (( $G_HW_MODEL == 20 ))
then
aENABLED=(1 0 0 0 0 1 0 1 0 0 0 1 1 0 0)
aENABLED=(1 0 0 0 0 1 0 1 0 0 0 1 1 0 0 1)
else
aENABLED=(1 0 1 0 0 1 0 0 0 0 0 1 1 0 0)
aENABLED=(1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 1)
fi

COLOUR_RESET='\e[0m'
Expand Down Expand Up @@ -194,7 +195,10 @@ $GREEN_LINE"
Website : https://dietpi.com/ | https://twitter.com/DietPi_
Contribute : https://dietpi.com/contribute.html
Web Hosting by : https://myvirtualserver.com$COLOUR_RESET\n"

}

Print_Updates(){
# DietPi update available?
if [[ $AVAILABLE_UPDATE ]]
then
Expand Down Expand Up @@ -268,7 +272,8 @@ $GREEN_LINE"
fi
echo -e "$GREEN_LINE\n"

Print_Credits
(( ${aENABLED[15]} == 1 )) && Print_Credits
Print_Updates
(( ${aENABLED[11]} == 1 )) && Print_Useful_Commands

}
Expand Down