c63a9f6566
To get endless sleep, `sleep inf` (or `sleep infinity`) can be used instead of `sleep 365d`. Coreutils' sleep accepts any floating-point number as an argument, which may be 'infinity', according to `man strtod`.
3 lines
137 B
Plaintext
3 lines
137 B
Plaintext
read USERNAME
|
|
su -c 'echo $$ >> /tmp/qubes-session-waiter; [ ! -f /tmp/qubes-session-env ] && exec sleep inf' - "$USERNAME" 2> /dev/null
|