From e80daa48c3c5be8b34387e399c849fe6c7e407e6 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Tue, 13 Aug 2019 13:52:42 +0900 Subject: Remove OS upgrade script Change-Id: Id167004e0ed5e17484ec9d5bef049b050b0f4509 Signed-off-by: Kichan Kwon --- packaging/mtp-responder.spec | 6 ------ scripts/500.mtp-responder-upgrade.sh | 12 ------------ 2 files changed, 18 deletions(-) delete mode 100755 scripts/500.mtp-responder-upgrade.sh diff --git a/packaging/mtp-responder.spec b/packaging/mtp-responder.spec index 312c5e2..201c8bb 100644 --- a/packaging/mtp-responder.spec +++ b/packaging/mtp-responder.spec @@ -29,8 +29,6 @@ Requires(post): /usr/bin/vconftool BuildRequires: pkgconfig(gmock) %endif -%define upgrade_script_path /usr/share/upgrade/scripts - %description This package includes a daemon which processes Media Transper Protocol(MTP) commands as MTP responder role. @@ -66,9 +64,6 @@ make %{?jobs:-j%jobs} mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d cp packaging/99-mtp-responder.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/99-mtp-responder.rules -mkdir -p %{buildroot}%{upgrade_script_path} -cp -f scripts/500.%{name}-upgrade.sh %{buildroot}%{upgrade_script_path} - install -D -m 0644 mtp-responder.service %{buildroot}/%{_unitdir}/mtp-responder.service install -D -m 0644 mtp-responder.socket %{buildroot}/%{_unitdir}/mtp-responder.socket @@ -81,7 +76,6 @@ install -D -m 0644 mtp-responder.socket %{buildroot}/%{_unitdir}/mtp-responder.s %{_unitdir}/mtp-responder.socket %{_prefix}/lib/udev/rules.d/99-mtp-responder.rules /opt/var/lib/misc/mtp-responder.conf -%{upgrade_script_path}/500.%{name}-upgrade.sh /etc/mtp-responder/descs /etc/mtp-responder/strs diff --git a/scripts/500.mtp-responder-upgrade.sh b/scripts/500.mtp-responder-upgrade.sh deleted file mode 100755 index 9f1fd15..0000000 --- a/scripts/500.mtp-responder-upgrade.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -PATH=/bin:/usr/bin:/sbin:/usr/sbin - -#----------------------------------------------# -# mtp-responder patch for upgrade (2.4 -> 3.0) # -#----------------------------------------------# - -# Macro -MTP_RESPONDER_CONF=/opt/var/lib/misc/mtp-responder.conf - -chown owner:users $MTP_RESPONDER_CONF -chsmack -a "_" $MTP_RESPONDER_CONF -- cgit v1.2.3