projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Release new version 2.9.0
[grml-scripts.git]
/
usr_bin
/
grml-lock
diff --git
a/usr_bin/grml-lock
b/usr_bin/grml-lock
index
673be73
..
ac05958
100755
(executable)
--- a/
usr_bin/grml-lock
+++ b/
usr_bin/grml-lock
@@
-44,7
+44,12
@@
and therefore might not work as intended." 7 70
fi
lock_desktop() {
- sudo physlock -u "$USER"
+ # be backwards compatible, see https://github.com/grml/grml/issues/87
+ if physlock --help 2>&1 | grep -q -- '-u user' ; then
+ sudo physlock -u "$USER"
+ else
+ sudo physlock
+ fi
}
is_passwd_set() {