mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-28 04:19:08 +02:00
* FreeBSD/pandora_agent: Small fixes: use proper rc variables, remove obsolete function "set_rcvar" call and use "daemon" command to start pandora_agent. * pandora_agent_installer: Refactored implementation and added "fakeroot" installation support. * plugins/who.sh: Converted to bourne shell script. * pandora_agent_daemon: Small bug fixes and refactorings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
15 lines
212 B
Bash
Executable File
15 lines
212 B
Bash
Executable File
#!/bin/sh
|
|
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>"
|
|
|