Skip to content

Commit

Permalink
[timed] Postpone setcap script to first boot
Browse files Browse the repository at this point in the history
Capabilities will be lost if they are set during mic tar image creation
because tar in 3.3.0 sdk is too old to preserve them and mic doesn't add
--xattrs option. Also busybox tar used in TWRP doesn't suppport extended
attributes.
This is taken from tracker oneshot script.
  • Loading branch information
elros34 committed Apr 28, 2020
1 parent 5b75ada commit 1a50130
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/setcaps-timed-qt5.sh
@@ -1,2 +1,7 @@
#!/bin/sh
if [ "$MIC_RUN" != "" ]; then
echo "setcaps-timed-qt5.sh - returning FAIL to postpone oneshot to first boot"
exit 1
fi

setcap cap_sys_time+ep /usr/bin/timed-qt5

0 comments on commit 1a50130

Please sign in to comment.