mirror of
https://github.com/alexreinert/homematic_check_mk.git
synced 2023-10-10 13:37:02 +02:00
Added basic plugin support to agent
This commit is contained in:
parent
1a76173f13
commit
c12aa0652d
@ -79,6 +79,10 @@ proc handle_connection { channelId clientAddress clientPort } {
|
||||
}
|
||||
}
|
||||
|
||||
foreach plugin [glob -nocomplain "[file dirname [info script]]/plugins/*"] {
|
||||
puts $channelId "[exec $plugin]"
|
||||
}
|
||||
|
||||
flush $channelId
|
||||
|
||||
close $channelId
|
||||
|
@ -13,6 +13,8 @@ fi
|
||||
# create necessary directories
|
||||
mkdir -p ${ADDON_DIR}
|
||||
chmod 755 ${ADDON_DIR}
|
||||
mkdir -p ${ADDON_DIR}/plugins
|
||||
chmod 755 ${ADDON_DIR}/plugins
|
||||
mkdir -p ${RCD_DIR}
|
||||
chmod 755 ${RCD_DIR}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user