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