Browse Source

net/keepalived: update keepalived.conf generation header

Add date info to keepalived config generated.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 7 years ago
parent
commit
e518c65b58
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      net/keepalived/files/keepalived.init

+ 2
- 1
net/keepalived/files/keepalived.init View File

@ -371,7 +371,8 @@ process_config() {
rm -f $KEEPALIVED_CONF rm -f $KEEPALIVED_CONF
# First line # First line
printf "! Configuration File for keepalived (autogenerated via init script)\n\n" > $KEEPALIVED_CONF
printf "! Configuration file for keepalived (autogenerated via init script)\n" > $KEEPALIVED_CONF
printf "! Written %s\n\n" "$(date +'%c')" >> $KEEPALIVED_CONF
[ -f /etc/config/keepalived ] || return 0 [ -f /etc/config/keepalived ] || return 0
config_load 'keepalived' config_load 'keepalived'


Loading…
Cancel
Save