#!/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