• Illecors
    link
    fedilink
    English
    21 year ago

    In regard to reinstalling drivers - look into pacman hooks. You want one for the kernel to trigger driver reinstallation.

    • Dandroid
      link
      fedilink
      11 year ago

      I’ll do some reading up on that. I haven’t heard of that before.

      I need to install the driver from an open source project that I cloned from GitHub. Does that have any impact on if I can do what you are recommending?

      Here are the instructions I follow

      • Illecors
        link
        fedilink
        English
        11 year ago

        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:


        [Trigger]
        Operation = Install
        Operation = Upgrade
        Type = Package
        Target = linux
        [Action]
        Description = Install a stick of joy
        When = PostTransaction
        Exec = /bin/bash -c /path/to/script
        

        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.