Sophie

Sophie

distrib > Mandriva > mes5 > i586 > by-pkgid > 08c6cc69fb4cc7c82aab950e2d0a9829 > files > 9

xinitrc-2.4.19-17mdv2009.0.src.rpm

#!/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}"