Skip to content

Instantly share code, notes, and snippets.

@akx
Created July 27, 2021 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akx/544fc126eed19139c29b10e0958e2f3d to your computer and use it in GitHub Desktop.
Save akx/544fc126eed19139c29b10e0958e2f3d to your computer and use it in GitHub Desktop.
/pacman.d/hooks/bless-node.hook
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = nodejs
[Action]
Description = Blessing Node.js for Bluetooth
When = PostTransaction
Exec = /bin/bash -c '/usr/bin/setcap cap_net_raw+eip $(eval readlink -f `which node`)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment