#!/bin/bash set -e # lee DNS_SERIAL if [ "$CPKG_ACTION" = "post-dpkg" -o "$CPKG_ACTION" = "update" ] ; then eval "$(llxcfg-showvars DNS_SERIAL)" # update serial and reinstall files with 'configure' (be aware of update !!) DNS_SERIAL=$(($DNS_SERIAL + 1)) llxcfg-systemvars add DNS_SERIAL=${DNS_SERIAL} /usr/share/lliurex/llxcfg-backend/llxcfg-cpkg-backend configure dns fi # last step: lets cpkg restart daemons automagically exit 0