babeld: Properly quote variables
This was mostly introduced by 82d9002689
("babeld: add support for dynamic
config files").
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
This commit is contained in:
parent
fd424268ba
commit
669fe615c6
1 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ ignored_options="carrier_sense assume_wireless no_split_horizon random_router_id
|
||||||
# Append a line to the configuration file
|
# Append a line to the configuration file
|
||||||
cfg_append() {
|
cfg_append() {
|
||||||
local value="$1"
|
local value="$1"
|
||||||
echo "$value" >> $CONFIGFILE
|
echo "$value" >> "$CONFIGFILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg_append_option() {
|
cfg_append_option() {
|
||||||
|
@ -215,13 +215,13 @@ babel_config_cb() {
|
||||||
start_service() {
|
start_service() {
|
||||||
mkdir -p /var/lib
|
mkdir -p /var/lib
|
||||||
mkdir -p /var/etc
|
mkdir -p /var/etc
|
||||||
mkdir -p $OTHERCONFIGDIR
|
mkdir -p "$OTHERCONFIGDIR"
|
||||||
|
|
||||||
# Start by emptying the generated config file
|
# Start by emptying the generated config file
|
||||||
>"$CONFIGFILE"
|
>"$CONFIGFILE"
|
||||||
# Import dynamic config files
|
# Import dynamic config files
|
||||||
for f in $OTHERCONFIGDIR/*.conf; do
|
for f in "$OTHERCONFIGDIR"/*.conf; do
|
||||||
[ -f "$f" ] && cat $f >> $CONFIGFILE
|
[ -f "$f" ] && cat "$f" >> "$CONFIGFILE"
|
||||||
done
|
done
|
||||||
# First load the whole config file, without callbacks, so that we are
|
# First load the whole config file, without callbacks, so that we are
|
||||||
# aware of all "ignore" options in the second pass.
|
# aware of all "ignore" options in the second pass.
|
||||||
|
|
Loading…
Reference in a new issue