1 #!/bin/sh 2 # 3 # $XFree86$ 4 5 # The output of this script is displayed in the chooser window. 6 # (instead of "Willing to manage") 7 8 load="`uptime|sed -e 's/^.*load[^0-9]*//'`" 9 nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`" 10 s=""; [ "$nrusers" != 1 ] && s=s 11 12 echo "${nrusers} user${s}, load: ${load}" 13