#!/bin/bash

set -eu

if [[ $EUID -ne 0 ]];
then
    exec pkexec --disable-internal-agent "$0" "$@"
fi

# Sike!  This is so the steam interface that originally wanted jupiter-biosupdate triggers the whole firmware update
# logic, which will call back to jupiter-biosupdate on necessary devices.
#
# This should all be moved to steamos-manager
exec /usr/bin/steamos-firmware-update "$@"
