Update pam.py
This commit is contained in:
parent
f849026192
commit
3ac6934d9f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ def doAuth(pamh):
|
|||
if any("closed" in open(f).read() for f in glob.glob("/proc/acpi/button/lid/*/state")):
|
||||
return pamh.PAM_AUTHINFO_UNAVAIL
|
||||
|
||||
# Abort if the video device does not exist
|
||||
# Abort if the video device does not exist
|
||||
if not os.path.exists(config.get("video", "device_path")):
|
||||
if config.getboolean("video", "warn_no_device"):
|
||||
print("Camera path is not configured correctly, please edit the 'device_path' config value.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue