17 lines
606 B
Bash
Executable File
17 lines
606 B
Bash
Executable File
#!/bin/bash -p
|
|
|
|
# omarchy:summary=Restore trusted Thunderbolt devices and publish their status
|
|
# omarchy:hidden=true
|
|
|
|
# Keep root startup independent of a caller's environment or checkout.
|
|
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
|
|
tb_daemon
|