There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Illecors ,

From what I understand you’re running the script posted here, right?

ArchWiki link on pacman hooks;

Manpage link for hook format.

What you need is a file - let’s call it stick-of-joy.hook - in /etc/pacman.d/hooks:



<span style="color:#323232;">[Trigger]
</span><span style="color:#323232;">Operation = Install
</span><span style="color:#323232;">Operation = Upgrade
</span><span style="color:#323232;">Type = Package
</span><span style="color:#323232;">Target = linux
</span><span style="color:#323232;">[Action]
</span><span style="color:#323232;">Description = Install a stick of joy
</span><span style="color:#323232;">When = PostTransaction
</span><span style="color:#323232;">Exec = /bin/bash -c /path/to/script
</span>

Writing this up on the go, so might have missed a syntax error or something. Make sure the script is executable - chmod +x /path/to/script.

You can test it by reinstalling the linux package - pacman -S linux.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines