# Upgrade configuration from previous versions
if test -e /etc/sysconfig/dnsmasq; then
if egrep -q '^[^#]*ALL *=' /etc/sysconfig/dnsmasq; then
if ! egrep -q '^[^#]*ALL_DEV *=' /etc/sysconfig/dnsmasq; then
echo 'NOTE: You should put ALL_DEV=<interface> to /etc/sysconfig/dnsmasq'
echo ' for keeping DHCP broadcasts mode.'
fi
fi
fi
# Create dnsmasq user
groupadd -r -f _dnsmasq ||:
useradd -r -g _dnsmasq -d /dev/null -s /dev/null -N _dnsmasq >/dev/null 2>&1 ||: