Ramon Novoa 0f38146c62 2014-04-14 Ramon Novoa <rnovoa@artica.es>
* plugins/who.sh: Output some text when there are no users connected.
	  Otherwise the module goes to unkown.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-14 12:43:10 +00:00

15 lines
215 B
Bash
Executable File

#!/bin/bash
echo "<module>";
echo "<name>who</name>";
echo "<type>async_string</type>";
echo "<data><![CDATA["
WHO=`who`
if [ "$WHO" == "" ]; then
echo "None"
else
echo $WHO
fi
echo "]]></data>"
echo "</module>"