Change numbering for script file 98/102298/1
authorJihoon Jung <jh8801.jung@samsung.com>
Mon, 5 Dec 2016 09:53:32 +0000 (18:53 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Mon, 5 Dec 2016 09:54:46 +0000 (18:54 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I430a41864db8b46be69f7174b11d631393087b83

packaging/mtp-responder.spec
scripts/500.mtp-responder-upgrade.sh [new file with mode: 0755]
scripts/mtp-responder-upgrade.sh [deleted file]

index 37fa74b5bdfc9e92d98f3b0e51e623d71f7d1313..9ceb5bd00b07aaaca32914af65dd9d8578136c99 100755 (executable)
@@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64
 
 Name:       mtp-responder
 Summary:    Media Transfer Protocol daemon (responder)
-Version:    0.0.16
+Version:    0.0.17
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
@@ -47,7 +47,7 @@ mkdir -p %{buildroot}%{_libdir}/udev/rules.d
 cp packaging/99-mtp-responder.rules %{buildroot}%{_libdir}/udev/rules.d/99-mtp-responder.rules
 
 mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/%{name}-upgrade.sh %{buildroot}%{upgrade_script_path}
+cp -f scripts/500.%{name}-upgrade.sh %{buildroot}%{upgrade_script_path}
 
 install -D -m 0644 mtp-responder.service %{buildroot}%{_libdir}/systemd/system/mtp-responder.service
 
@@ -62,5 +62,5 @@ ln -sf %{_libdir}/systemd/system/mtp-responder.service %{_sysconfdir}/systemd/de
 %{_libdir}/systemd/system/mtp-responder.service
 %{_libdir}/udev/rules.d/99-mtp-responder.rules
 /opt/var/lib/misc/mtp-responder.conf
-%{upgrade_script_path}/%{name}-upgrade.sh
+%{upgrade_script_path}/500.%{name}-upgrade.sh
 #%license LICENSE.APLv2
diff --git a/scripts/500.mtp-responder-upgrade.sh b/scripts/500.mtp-responder-upgrade.sh
new file mode 100755 (executable)
index 0000000..9f1fd15
--- /dev/null
@@ -0,0 +1,12 @@
+#!/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
diff --git a/scripts/mtp-responder-upgrade.sh b/scripts/mtp-responder-upgrade.sh
deleted file mode 100755 (executable)
index 9f1fd15..0000000
+++ /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