Skip to content

Commit

Permalink
v7.2
Browse files Browse the repository at this point in the history
+ DietPi-Cron.daily | Since the MOTD is enabled by default, update it as well if the DietPi-Banner config file does not exist
  • Loading branch information
MichaIng authored May 2, 2021
1 parent 98d22ae commit a513669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/cron.daily/dietpi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
fi
#----------------------------------------------------------------
# Refresh DietPi MOTD
if [[ -f '/boot/dietpi/.dietpi-banner' ]] && grep -q '^[[:blank:]]*aENABLED\[12\]=1' /boot/dietpi/.dietpi-banner
if [[ ! -f '/boot/dietpi/.dietpi-banner' ]] || grep -q '^[[:blank:]]*aENABLED\[12\]=1' /boot/dietpi/.dietpi-banner
then
[[ -f '/run/dietpi/.dietpi_motd' ]] && rm /run/dietpi/.dietpi_motd
curl -sSfL https://dietpi.com/motd -o /run/dietpi/.dietpi_motd
Expand Down

0 comments on commit a513669

Please sign in to comment.