fwupd/contrib/debian/fwupd-tests.preinst
Mario Limonciello 43775d03f9 debian: use dpkg-divert to adjust the launch script for CI testing
This means that if someone wants to use the test inteface with
packages, no hacky launching needed.

Just:
2017-06-22 14:44:58 -05:00

8 lines
281 B
Bash

#!/bin/sh
if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
dpkg-divert --package fwupd-tests --add --rename \
--divert /usr/share/dbus-1/system-services/org.freedesktop.fwupd.service.original \
/usr/share/dbus-1/system-services/org.freedesktop.fwupd.service
fi