Remove automatic motd creator if it exists
This commit is contained in:
parent
913b2387f1
commit
195735cc51
|
@ -5166,6 +5166,12 @@ function change_login_message {
|
|||
if grep -Fxq "change_login_message" $COMPLETION_FILE; then
|
||||
return
|
||||
fi
|
||||
|
||||
# remove automatic motd creator if it exists
|
||||
if [ -f /etc/init.d/motd ]; then
|
||||
rm -f /etc/init.d/motd
|
||||
fi
|
||||
|
||||
echo '' > /etc/motd
|
||||
echo ".---. . . " >> /etc/motd
|
||||
echo "| | | " >> /etc/motd
|
||||
|
|
|
@ -251,6 +251,11 @@ if [ ! -f $MICROSD_MOUNT_POINT/$ROOTFS/usr/local/bin/freedombone ]; then
|
|||
exit 8736
|
||||
fi
|
||||
|
||||
# remove automatic motd creator if it exists
|
||||
if [ -f $MICROSD_MOUNT_POINT/$ROOTFS/etc/init.d/motd ]; then
|
||||
$SUDO rm -f $MICROSD_MOUNT_POINT/$ROOTFS/etc/init.d/motd
|
||||
fi
|
||||
|
||||
# change the motd to show further install instructions
|
||||
echo '' >> /tmp/freedombone_motd
|
||||
echo 'Create a user for the system with:' >> /tmp/freedombone_motd
|
||||
|
|
Loading…
Reference in New Issue