net/keepalived: update keepalived.conf generation header
Add date info to keepalived config generated. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
062c35f560
commit
e518c65b58
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue