Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvidiactl: Return success if no Nvidia card was found
Currently, on systems with no Nvidia card, the script returns 1, which is considered an error. This causes the systemd service unit running this script to be shown as failed, and these systems are marked as *degraded* by systemd (`systemctl`, `systemdctl status`). But, having a system with no Nvidia card is totally fine, as there are such systems, and therefore shouldn’t be considered an error. Only return an error, if there really is some incorrect behavior.
- Loading branch information