mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 01:44:32 +04:00
rsyslog: include original config file
Allow advanced configurations from /etc/rsyslog.conf file Signed-off-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
This commit is contained in:
committed by
Rosen Penev
parent
dda5f84630
commit
d7084eae60
@@ -7,6 +7,7 @@ USE_PROCD=1
|
|||||||
|
|
||||||
UCI_CONF="rsyslog"
|
UCI_CONF="rsyslog"
|
||||||
CONFIG_FILE="/var/etc/rsyslog.conf"
|
CONFIG_FILE="/var/etc/rsyslog.conf"
|
||||||
|
BASE_CONFIG_FILE="/etc/rsyslog.conf"
|
||||||
|
|
||||||
modules=""
|
modules=""
|
||||||
selectors=""
|
selectors=""
|
||||||
@@ -74,7 +75,9 @@ expand_config() {
|
|||||||
config_foreach handle_selector selector
|
config_foreach handle_selector selector
|
||||||
config_foreach handle_forwarder forwarder
|
config_foreach handle_forwarder forwarder
|
||||||
|
|
||||||
|
mkdir -p $(dirname ${CONFIG_FILE})
|
||||||
> ${CONFIG_FILE}
|
> ${CONFIG_FILE}
|
||||||
|
echo "include(file=\"${BASE_CONFIG_FILE}\" mode=\"optional\")" >> ${CONFIG_FILE}
|
||||||
for m in ${modules}; do
|
for m in ${modules}; do
|
||||||
echo "module(load=\"${m}\")" >> ${CONFIG_FILE}
|
echo "module(load=\"${m}\")" >> ${CONFIG_FILE}
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user