Moving to whoami fixes ambiguity on a multi-user system

This commit is contained in:
Ben Nealon
2019-08-10 09:54:14 +01:00
parent ab4fa88ad6
commit 18f615f08c
6 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
echo "---Hyperion ambient light prerm ---"
# search for users in system, returns first entry
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
FOUND_USR=`whoami` || "root"
# stop running daemon before we delete it
HYPERION_RUNNING=false