#!/bin/sh # Added to remove the "Wireless ethernet" behaviour. set -e DIVERT_LIST="/etc/xdg/autostart/nm-applet.desktop" OWN_DESKTOP="/usr/share/llxcfg-nm/data/desktops/nm-applet.desktop.llxcfg" case "$1" in configure) # script for f in ${DIVERT_LIST} ; do dpkg-divert --package llxcfg-nm --rename --quiet --add --divert ${f}.real ${f} || echo "Unable to divert file \"$f\"" >&2 cp ${OWN_DESKTOP} ${f} done ;; upgrade) if [ dpkg --compare-versions "$2" lt 0.12 ]; then llxcfg-nm erradicate >/dev/null 2>/dev/null || true llxcfg-nm --force replenish >/dev/null 2>/dev/null || true fi ;; *) ;; esac #DEBHELPER#