#!/bin/bash

# The Steam client is known to call this script with the following parameter combinations:
# steamos-update --supports-duplicate-detection     -- should do nothing
# steamos-update --enable-duplicate-detection check -- should check for update
# steamos-update check                              -- should check for update
# steamos-update --enable-duplicate-detection       -- should perform an update
# steamos-update                                    -- should perform an update

if [[ -f /etc/handheld-first-boot ]]; then
    rm -f /etc/handheld-first-boot
    systemctl restart graphical.target
fi

exit 7 # Tells Steam that there is nothing to update
