bazzite/system_files/deck/shared/usr/libexec/bazzite-enable-hhd

10 lines
188 B
Plaintext
Raw Normal View History

#!/usr/bin/bash
2023-12-21 00:37:35 -08:00
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