bazzite/system_files/deck/shared/usr/libexec/bazzite-enable-hhd
2024-04-15 12:07:42 -07:00

10 lines
188 B
Bash
Executable File

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