Changed pi user log in to exact match

This commit is contained in:
Sandro Jäckel 2018-04-06 14:25:45 +02:00 committed by GitHub
parent 38a7646f06
commit 3fc2b1a410
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -461,7 +461,7 @@ function is_raspbian() {
}
function user_pi_logged_out() {
who | grep pi > /dev/null && return 1
who | grep -w pi > /dev/null && return 1
return 0
}