babeld: allow changing alternative configuration file and directory
[lede-routing/.git] / babeld / files / babeld.config
index fa22fd63cf1d2227d36bd08303534043905b5e2f..cb2a131150677fef2fb5655842f2948c4d53cdcd 100644 (file)
@@ -1,10 +1,10 @@
 package babeld
 
-# Configuration set in this file ends up in /var/etc/babeld.conf.
-# Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf, so
-# you can use one or the other, or even both at the same time.  If an
-# option is defined in both files, the version in /var/etc/babeld.conf
-# takes precedence.
+# Babeld reads options from the following files (the last one takes precedence
+# if an option is defined in several places):
+# - the file defined by the option conf_file (default: /etc/babeld.conf),
+# - *.conf files in the directory defined by conf_dir (default: /tmp/babel.d/),
+# - this UCI configuration file.
 
 # See "man babeld" for all available options ("Global options").
 # Important: remember to use '_' instead of '-' in option names.
@@ -20,6 +20,10 @@ config general
        ## import-table statement, "option import_table 42" should work.
        # list 'import_table' '42'
        # list 'import_table' '100'
+       ## Alternative configuration file and directory.
+       ## See comment at the top of this file for more details.
+       # option 'conf_file' '/etc/babeld.conf'
+       # option 'conf_dir' '/tmp/babel.d/'
 
 config interface
        ## Remove this line to enable babeld on this interface