You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
328 B

#!/bin/sh
# Check if old config section is still in use
uci show keepalived.@global_defs[-1] 1>/dev/null 2>/dev/null
if [ "$?" -eq "0" ]; then
uci -q rename keepalived.@global_defs[-1]=globals
uci -q commit keepalived
sed -i "s|^config global_defs 'globals'$|config globals 'globals'|" \
/etc/config/keepalived
fi
exit 0