mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
meson: fail silently in ptp helper post install script
.. in case permissions/capabilities could not be set.
This commit is contained in:
parent
0d33e8f11d
commit
c8f8395f41
1 changed files with 3 additions and 3 deletions
|
@ -11,14 +11,14 @@ case "$with_ptp_helper_permissions" in
|
|||
setuid-root)
|
||||
echo "$0: permissions before: "
|
||||
ls -l "$ptp_helper"
|
||||
chown root "$ptp_helper"
|
||||
chmod u+s "$ptp_helper"
|
||||
chown root "$ptp_helper" || true
|
||||
chmod u+s "$ptp_helper" || true
|
||||
echo "$0: permissions after: "
|
||||
ls -l "$ptp_helper"
|
||||
;;
|
||||
capabilities)
|
||||
echo "Calling $setcap cap_net_bind_service,cap_net_admin+ep $ptp_helper"
|
||||
$setcap cap_net_bind_service,cap_net_admin+ep "$ptp_helper"
|
||||
$setcap cap_net_bind_service,cap_net_admin+ep "$ptp_helper" || true
|
||||
;;
|
||||
*)
|
||||
echo "$0 ERROR: unexpected permissions value '$with_ptp_helper_permissions'";
|
||||
|
|
Loading…
Reference in a new issue