diff options
author | Hyuk Lee <hyuk0512.lee@samsung.com> | 2017-08-22 14:55:48 +0900 |
---|---|---|
committer | Hyuk Lee <hyuk0512.lee@samsung.com> | 2017-08-22 14:55:48 +0900 |
commit | 00b74e6bd4f308cf2ab8d8833d47c8b245451916 (patch) | |
tree | 9890fcde1a6668c9c5d84e18a9febf7b819358ca | |
parent | 181619eedc6272f8743fe025756c3b685929935b (diff) | |
download | bluez-00b74e6bd4f308cf2ab8d8833d47c8b245451916.tar.gz bluez-00b74e6bd4f308cf2ab8d8833d47c8b245451916.tar.bz2 bluez-00b74e6bd4f308cf2ab8d8833d47c8b245451916.zip |
Update the RW upgrade script
Change-Id: I276ad53083661c4b00f837b9fc4ad8dc08588b27
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
-rwxr-xr-x | packaging/500.bluez_upgrade.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/packaging/500.bluez_upgrade.sh b/packaging/500.bluez_upgrade.sh index d5006214..9ef57e6e 100755 --- a/packaging/500.bluez_upgrade.sh +++ b/packaging/500.bluez_upgrade.sh @@ -1,9 +1,17 @@ #!/bin/sh #------------------------------------------# -# bluetoothd patch for upgrade (2.4 -> 3.0) # +# bluetoothd patch for upgrade # #------------------------------------------# # Change the smack label for BT chip and paired info -chsmack -a "User" /var/lib/bluetooth -chsmack -a "System" /var/lib/bluetooth/* -r +source /usr/share/upgrade/rw-update-macro.inc +get_version_info + +if [ $OLD_VER == "2.4" ]; then + chsmack -a "User" /var/lib/bluetooth + chsmack -a "System" /var/lib/bluetooth/* -r +elif [ $OLD_VER == "3.0" ]; then + chsmack -a "_" /var/lib/bluetooth + chsmack -a "_" /var/lib/bluetooth* -r +fi |