#!/bin/bash set -e path="/usr/lib/`/usr/bin/dpkg-architecture -qDEB_TARGET_MULTIARCH`/ukui-control-center/libnetconnect.so" dpkg-divert --package kylin-nm --rename --divert "$path"".old" --add $path