#!/bin/sh

sudo -u gdm dbus-launch gsettings set org.gnome.login-screen logo '/usr/share/plymouth/edubuntu-logo.png'
# We assume that if a user home directory exists with the name "edubuntu" that
# we're in the live session, so don't disable and reboot if '/home/edubuntu' exists
# otherwise we'll end up in a reboot loop.
if [ -d "/home/edubuntu/" ]; then
  exit 0
else
  systemctl disable edubuntu-firstboot.service
  reboot
fi
