From 654b069dc7cb8cdbfe2c465dab1cbe5bb750650d Mon Sep 17 00:00:00 2001 From: Bin Li Date: Tue, 22 Oct 2024 19:07:51 +0800 Subject: [PATCH] Remove systemd service for Fcc unlock. (#33) --- debian/lenovo-fccunlock.install | 1 - debian/lenovo-fccunlock.postinst | 14 -------------- debian/lenovo-fccunlock.postrm | 14 -------------- debian/lenovo-fccunlock.service | 7 ------- debian/rules | 1 - 5 files changed, 37 deletions(-) delete mode 100644 debian/lenovo-fccunlock.postinst delete mode 100644 debian/lenovo-fccunlock.postrm delete mode 100644 debian/lenovo-fccunlock.service diff --git a/debian/lenovo-fccunlock.install b/debian/lenovo-fccunlock.install index fb8a321..a59aa7c 100755 --- a/debian/lenovo-fccunlock.install +++ b/debian/lenovo-fccunlock.install @@ -7,6 +7,5 @@ debian/mm-hook => /usr/lib/x86_64-linux-gnu/ModemManager/fcc-unlock.d/2c7c:6008 DPR_Fcc_unlock_service /opt/fcc_lenovo/ libmodemauth.so /opt/fcc_lenovo/lib/ libmbimtools.so /opt/fcc_lenovo/lib/ -debian/lenovo-fccunlock.service /lib/systemd/system/ suspend-fix/mm-wrapper.sh /opt/fcc_lenovo/suspend-fix/ suspend-fix/apply-test-option.conf /etc/systemd/system/ModemManager.service.d/ diff --git a/debian/lenovo-fccunlock.postinst b/debian/lenovo-fccunlock.postinst deleted file mode 100644 index 06a2fe0..0000000 --- a/debian/lenovo-fccunlock.postinst +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -. /usr/share/debconf/confmodule - -case "$1" in - configure) - systemctl --system daemon-reload || true - deb-systemd-invoke restart ModemManager.service || true - ;; -esac - -#DEBHELPER# diff --git a/debian/lenovo-fccunlock.postrm b/debian/lenovo-fccunlock.postrm deleted file mode 100644 index e0f78fc..0000000 --- a/debian/lenovo-fccunlock.postrm +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -. /usr/share/debconf/confmodule - -case "$1" in - remove|purge) - systemctl --system daemon-reload || true - deb-systemd-invoke restart ModemManager.service || true - ;; -esac - -#DEBHELPER# diff --git a/debian/lenovo-fccunlock.service b/debian/lenovo-fccunlock.service deleted file mode 100644 index 33d826e..0000000 --- a/debian/lenovo-fccunlock.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=fccunlock - -[Service] -Type=oneshot -User=root -ExecStart=/opt/fcc_lenovo/DPR_Fcc_unlock_service diff --git a/debian/rules b/debian/rules index bcaae67..7b2efa6 100755 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,6 @@ override_dh_auto_configure: override_dh_installsystemd: dh_installsystemd -p lenovo-cfgservice lenovo-cfgservice.service - dh_installsystemd -p lenovo-fccunlock lenovo-fccunlock.service --no-enable --no-start execute_after_dh_install: install -m 0644 -D debian/opt.fcc_lenovo.configservice_lenovo -t debian/lenovo-cfgservice/etc/apparmor.d