18 lines
666 B
Bash
Executable File
18 lines
666 B
Bash
Executable File
#!/bin/bash -p
|
|
|
|
# omarchy:summary=Manage system Thunderbolt authorization settings
|
|
# omarchy:hidden=true
|
|
|
|
# This root entrypoint uses installed code and rejects unsafe Bash startup.
|
|
if [[ $- != *p* ]]; then exit 126; fi
|
|
source /usr/bin/omarchy-security-functions || exit 126
|
|
omarchy_security_require_privileged_bash_startup || exit 126
|
|
omarchy_security_sanitize_bash_environment "$0" "$@"
|
|
set -euo pipefail
|
|
(( EUID == 0 )) || exit 126
|
|
export PATH=/usr/bin:/bin LC_ALL=C
|
|
unset DBUS_SYSTEM_BUS_ADDRESS DBUS_SESSION_BUS_ADDRESS
|
|
source /usr/share/omarchy/install/helpers/thunderbolt-policy.sh
|
|
source /usr/share/omarchy/install/helpers/thunderbolt-setup.sh
|
|
tb_admin "$@"
|