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