diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-05-05 12:23:43 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-05-05 12:23:43 +0100 |
commit | c8f8395f41b30cef6ee18709b70662a85867ce49 (patch) | |
tree | 84235102f6793a6be2333a9018269aab13a1c434 | |
parent | 0d33e8f11dc23dca9bac63fcbc49b597ef62ec70 (diff) |
meson: fail silently in ptp helper post install script
.. in case permissions/capabilities could not be set.
-rwxr-xr-x | libs/gst/helpers/ptp_helper_post_install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gst/helpers/ptp_helper_post_install.sh b/libs/gst/helpers/ptp_helper_post_install.sh index 5e867735f..eefe1c9d6 100755 --- a/libs/gst/helpers/ptp_helper_post_install.sh +++ b/libs/gst/helpers/ptp_helper_post_install.sh @@ -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'"; |