#!/bin/sh set -e DEFAULT_FILE=/etc/default/minissdpd case "$1" in upgrade) if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.5.20180223-5 && [ -r "${DEFAULT_FILE}" ] ; then sed -i 's/^START_DAEMON=/# START_DAEMON deprecated, use service minissdpd enable\/disable\n#START_DAEMON=/' "${DEFAULT_FILE}" fi ;; install|abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Automatically added by dh_installinit/13.13 if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/minissdpd" ] ; then chmod +x "/etc/init.d/minissdpd" >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.13 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'minissdpd.service' >/dev/null || true fi # End automatically added section exit 0