summaryrefslogtreecommitdiff
path: root/config/Xwilling
blob: cd92a3d8b505c8951a4187f98da18721f6fcdf37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# $XFree86: xc/programs/xdm/config/Xwilling,v 1.1 1998/12/06 06:08:51 dawes Exp $

# The output of this script is displayed in the chooser window.
# (instead of "Willing to manage")

load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ 	]*//'`"
s=""; [ "$nrusers" != 1 ] && s=s

echo "${nrusers} user${s}, load: ${load}"