diff options
| author | erdgeist <> | 2013-09-25 00:43:09 +0000 |
|---|---|---|
| committer | erdgeist <> | 2013-09-25 00:43:09 +0000 |
| commit | 9fc9d531257a3f8fbf7e69f1cf13ea963836ba8f (patch) | |
| tree | 4fc9e29dc867820200087f07674c49bd63bafe82 | |
| parent | 33f283bf5e52c9e8a78d01659a1682d2d63d98d9 (diff) | |
Want to also find soft linked plugins, to support wildcard plugins
| -rwxr-xr-x | minimunin | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -7,7 +7,7 @@ SYSCTL=/sbin/sysctl | |||
| 7 | [ -f ${SYSCTL} ] || SYSCTL=/usr/sbin/sysctl | 7 | [ -f ${SYSCTL} ] || SYSCTL=/usr/sbin/sysctl |
| 8 | 8 | ||
| 9 | # list plugins, read configs | 9 | # list plugins, read configs |
| 10 | PLUGINS=`/usr/bin/find ${PLUGIN_DIR} -type f -not -name *_ -perm +111 -exec basename {} \; 2> /dev/null | /usr/bin/xargs` | 10 | PLUGINS=`/usr/bin/find ${PLUGIN_DIR} -type l -or -type f -not -name *_ -perm +111 -exec basename {} \; 2> /dev/null | /usr/bin/xargs` |
| 11 | CONFIGS=`/usr/bin/find ${CONFIG_DIR} -type f -exec /usr/bin/grep -v -e ^\# -e ^$ {} \; -exec /bin/echo [] \; 2> /dev/null` | 11 | CONFIGS=`/usr/bin/find ${CONFIG_DIR} -type f -exec /usr/bin/grep -v -e ^\# -e ^$ {} \; -exec /bin/echo [] \; 2> /dev/null` |
| 12 | 12 | ||
| 13 | main() { | 13 | main() { |
