then
# We want to generate file which only contains the MythTV Status
# as a snippet in /etc/update-motd.d will cat this file.
+ #
+ # Current (as of 2019-01-1) Debian and Ubuntu releases use this
+ # method.
WORKFILE=/run/motd.mythtv-status
TEMPFILE=${WORKFILE}.new
DISTRO='unknown'
fi
- if [ $DISTRO = 'debian' ]
- then
- # Debian Wheezy+ handles the MOTD differently.
- [ -f /run/motd.dynamic ] && WORKFILE=/run/motd.dynamic
- elif [ $DISTRO = 'fedora' ]
+ if [ $DISTRO = 'fedora' ]
then
WORKFILE=/etc/motd
STUBFILE=/etc/motd.stub