# Make sure that this script is always the latest to be called !!!

# Check if the user request a shutdown or a reboot
if [ -f /tmp/ldm-logout-action ]; then
    case "$(cat /tmp/ldm-logout-action)" in
        shutdown)
            poweroff -f
        ;;
        reboot)
            reboot -f
        ;;
        *)
        ;;
    esac
fi
