Revert "Moving to whoami fixes ambiguity on a multi-user system"

This reverts commit 18f615f08c.
This commit is contained in:
Ben Nealon
2019-08-10 11:30:08 +01:00
parent 18f615f08c
commit cc538b60fd
6 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ BOOT_BERRYBOOT=$(grep -m1 -c '\(/var/media\|/media/pi\)/berryboot' /etc/mtab)
NET_IP=`hostname -I | cut -d " " -f1`
# search for users in system, returns first entry
FOUND_USR=`whoami` || "root"
FOUND_USR=`who | grep -o -m1 '^\w*\b'` || "root"
# determine if we should use a service
ENABLE_SERVICE=0