Package dnsmasq: Скрипты

Post install

/usr/sbin/post_service dnsmasq
Pre install

# Upgrade configuration from previous versions
if test -e /etc/sysconfig/dnsmasq; then
if grep -Eq '^[^#]*ALL *=' /etc/sysconfig/dnsmasq; then
    if ! grep -Eq '^[^#]*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 ||:
Pre uninstall

/usr/sbin/preun_service dnsmasq