summaryrefslogtreecommitdiff
path: root/wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in')
-rw-r--r--wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in b/wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in
new file mode 100644
index 0000000..6007780
--- /dev/null
+++ b/wearable/debian/bluetooth-firmware-bcm-e4412.postinst.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Change File Permission
+chmod 644 @PREFIX@/etc/bluetooth/BCM4334B0_002.001.013.0079.0081.hcd
+chmod 644 @PREFIX@/etc/bluetooth/BCM4334B0_002.001.013.0079.0084.hcd
+
+# root case
+if [ ${USER} = "root" ]
+then
+ chown root:root @PREFIX@/etc/bluetooth/BCM4334B0_002.001.013.0079.0081.hcd
+ chown root:root @PREFIX@/etc/bluetooth/BCM4334B0_002.001.013.0079.0084.hcd
+fi