#!/bin/sh set -e # Automatically added by dh_installinit/13.3.4 if [ -x "/etc/init.d/wb-systime-adjust" ] && [ "$1" = remove ]; then invoke-rc.d wb-systime-adjust stop || exit 1 fi # End automatically added section # Automatically added by dh_installinit/13.3.4 if [ -x "/etc/init.d/wb-configs" ] && [ "$1" = remove ]; then invoke-rc.d wb-configs stop || exit 1 fi # End automatically added section # Automatically added by dh_installinit/13.3.4 if [ -x "/etc/init.d/wb-configs-early" ] && [ "$1" = remove ]; then invoke-rc.d wb-configs-early stop || exit 1 fi # End automatically added section # Automatically added by dh_installdeb/13.3.4 dpkg-maintscript-helper rm_conffile /etc/kernel/postinst.d/zImage-uboot -- "$@" dpkg-maintscript-helper rm_conffile /etc/init.d/wb-configs 1.76\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/apt/sources.list.d/contactless.list 1.76\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/apt/sources.list.d/wheezy-backports.list 1.76\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/apt/sources.list.d/nodesource.list 3.30.1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/apt/preferences 1.78\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/preferences 1.78\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/mosquitto/conf.d/auth.conf 3.0.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/mosquitto/conf.d/listeners.conf 3.0.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/mosquitto/conf.d/bridge.conf 3.0.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/mosquitto/conf.d/bridge.conf.example 3.0.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/mosquitto/conf.d/30limits.conf 3.22.0\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/ssl/openssl.cnf 3.22.1\~ -- "$@" # End automatically added section # Automatically added by dh_configpackage/UNDECLARED # displace.sh.in: diversion helpers for maintainer scripts # # displace_link # # Ensures that the file is properly diverted to # .divert-orig by this package, and becomes a # symbolic link to either .divert (default) or # .divert-orig. # # undisplace_unlink # # Undoes the action of displace_link specified # above. # # Version: 4.0 # # Copyright © 2008–2012 Tim Abbott and Anders # Kaseorg # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the “Software”), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, # publish, distribute, sublicense, and/or sell copies of the Software, # and to permit persons to whom the Software is furnished to do so, # subject to the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # package=wb-configs ours=.wb theirs=.wb-orig displace_link_divert() { file=$1 ourfile=$2 theirfile=$3 if ! LC_ALL=C dpkg-divert --list "$package" | \ grep -xFq "diversion of $file to $theirfile by $package"; then dpkg-divert --divert "$theirfile" --rename --package "$package" --add "$file" fi } displace_link_symlink() { file=$1 ourfile=$2 theirfile=$3 if [ ! -L "$file" ] && [ ! -e "$file" ]; then ln -s "$(basename "$ourfile")" "$file" elif [ ! -L "$file" ] || \ [ "$(readlink "$file")" != "$(basename "$ourfile")" -a \ "$(readlink "$file")" != "$(basename "$theirfile")" ]; then echo "*** OMINOUS WARNING ***: $file is not linked to either $(basename "$ourfile") or $(basename "$theirfile")" >&2 fi } displace_link() { prefix=$1 suffix=$2 file=$prefix$suffix ourfile=$prefix$ours$suffix theirfile=$prefix$theirs$suffix displace_link_divert "$file" "$ourfile" "$theirfile" displace_link_symlink "$file" "$ourfile" "$theirfile" } displace_hide() { file=$1 ourfile="" theirfile=$2 displace_link_divert "$file" "$ourfile" "$theirfile" } undisplace_unlink_symlink() { file="$1" ourfile="$2" theirfile="$3" if [ ! -L "$file" ] || \ [ "$(readlink "$file")" != "$(basename "$ourfile")" -a \ "$(readlink "$file")" != "$(basename "$theirfile")" ]; then echo "*** OMINOUS WARNING ***: $file is not linked to either $(basename "$ourfile") or $(basename "$theirfile")" >&2 else rm -f "$file" fi } undisplace_unlink_divert() { file="$1" if [ ! -L "$file" ] && [ ! -e "$file" ]; then dpkg-divert --remove --rename --package "$package" "$file" else echo "Not removing diversion of $file by $package" >&2 fi } undisplace_unlink() { prefix=$1 suffix=$2 file=$prefix$suffix ourfile=$prefix$ours$suffix theirfile=$prefix$theirs$suffix undisplace_unlink_symlink "$file" "$ourfile" "$theirfile" undisplace_unlink_divert "$file" } undisplace_unhide() { file=$1 undisplace_unlink_divert "$file" } check_undisplace_unlink() { prefix=$1 suffix=$2 file=$prefix$suffix ourfile=$prefix$ours$suffix theirfile=$prefix$theirs$suffix if LC_ALL=C dpkg-divert --list "$package" | \ grep -xFq "diversion of $file to $theirfile by $package"; then undisplace_unlink "$prefix" "$suffix" fi } check_undisplace_unhide() { file=$1 hiddenfile=$2 if LC_ALL=C dpkg-divert --list "$package" | \ grep -xFq "diversion of $file to $hiddenfile by $package"; then undisplace_unhide "$file" fi } # End of displace.sh.in if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then undisplace_unlink /etc/rsyslog.conf undisplace_unlink /etc/systemd/journald.conf undisplace_unlink /etc/avahi/avahi-daemon.conf undisplace_unlink /etc/ssh/sshd_config undisplace_unlink /etc/e2fsck.conf undisplace_unlink /etc/fw_env.config undisplace_unlink /etc/nsswitch.conf undisplace_unlink /etc/default/avahi-daemon undisplace_unlink /etc/sysctl.conf undisplace_unlink /etc/lirc/hardware.conf undisplace_unlink /etc/nfc/libnfc.conf undisplace_unlink /etc/nginx/sites-available/default undisplace_unlink /etc/ppp/ip-up.d/0000usepeerdns undisplace_unlink /etc/ppp/chap-secrets undisplace_unlink /etc/watchdog.conf undisplace_unlink /etc/default/hostapd undisplace_unlink /etc/hostapd.conf undisplace_unlink /etc/dnsmasq.conf undisplace_unlink /etc/network/interfaces undisplace_unlink /etc/hosts undisplace_unlink /etc/default/rcS undisplace_unlink /etc/gai.conf undisplace_unlink /etc/fstab undisplace_unlink /etc/inittab undisplace_unlink /etc/modules undisplace_unlink /etc/hostname undisplace_unlink /etc/locale.gen undisplace_unlink /root/.bashrc fi # End automatically added section # Automatically added by dh_systemd_start/13.3.4 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'wb-systime-adjust.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_start/13.3.4 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop 'wb-configs.service' >/dev/null || true fi # End automatically added section