🔧 Added custom wireshark hook to pacman
This commit is contained in:
parent
7810f1070b
commit
89446d7805
4 changed files with 47 additions and 9 deletions
34
custom_hooks/install.md
Normal file
34
custom_hooks/install.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
This is a simple pacman hook that will update the mandb (the database of man
|
||||
pages) whenever you update.
|
||||
|
||||
It was taken from this Artix form post:
|
||||
|
||||
https://forum.artixlinux.org/index.php/topic,1080.0.html
|
||||
|
||||
very simply:
|
||||
|
||||
doas cp mandb-update.hook /usr/share/libalpm/hooks
|
||||
|
||||
You can also uncomment this line in /etc/pacman.conf:
|
||||
|
||||
HookDir = /etc/pacman.d/hooks/
|
||||
|
||||
You may need to create this directory. Inside of it you can create a .hook file:
|
||||
|
||||
```sh
|
||||
touch wireshark-dumpcap.hook
|
||||
```
|
||||
|
||||
Here is a sample hook:
|
||||
|
||||
```
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = wireshark-cli
|
||||
|
||||
[Action]
|
||||
Description = Fixing permissions for dumpcap...
|
||||
When = PostTransaction
|
||||
Exec = /bin/sh -c 'chgrp wireshark /usr/bin/dumpcap && setcap cap_net_raw,cap_net_admin=ep /usr/bin/dumpcap'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue