bazzite/system_files/deck/shared/usr/libexec/bazzite-enable-hhd
2024-07-28 11:45:38 -07:00

12 lines
249 B
Bash
Executable File

#!/usr/bin/bash
if [ "$1" == "root" ]; then
echo "Do not run this for root."
exit 0
fi
# Enable HHD
systemctl enable --now hhd@$(systemd-escape $1).service
# Ensure HHD is never running for the root user
systemctl disable --now hhd@root.service