Update README.md
This commit is contained in:
parent
eaaf5835d9
commit
ef5110edf8
16
README.md
16
README.md
@ -3,13 +3,21 @@ This hook runs grub-update when you update your system, preventing you from need
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
1. Clone the repo and cd into the repo directory.
|
1. Clone the repo and cd into the repo directory.
|
||||||
`git clone https://upchur.ch/gitea/n_u/Grub-Update-Hook.git && cd Grub-Update-Hook`
|
``` bash
|
||||||
|
git clone https://upchur.ch/gitea/n_u/Grub-Update-Hook.git && cd Grub-Update-Hook
|
||||||
|
```
|
||||||
2. Create the requisite hook directories on your system if you don't have them already.
|
2. Create the requisite hook directories on your system if you don't have them already.
|
||||||
`sudo mkdir /etc/pacman.d/hooks.bin/ /etc/pacman.d/hooks/`
|
``` bash
|
||||||
|
sudo mkdir /etc/pacman.d/hooks.bin/ /etc/pacman.d/hooks/
|
||||||
|
```
|
||||||
3. Copy the files into the appropriate locations.
|
3. Copy the files into the appropriate locations.
|
||||||
`sudo cp grubupdatefix /etc/pacman.d/hooks.bin/ && cp grubupdatefix.hook /etc/pacman.d/hooks/`
|
``` bash
|
||||||
|
sudo cp grubupdatefix /etc/pacman.d/hooks.bin/ && cp grubupdatefix.hook /etc/pacman.d/hooks/
|
||||||
|
```
|
||||||
4. Make the script executable.
|
4. Make the script executable.
|
||||||
`sudo chmod +x /etc/pacman.d/hooks.bin/grubupdatefix`
|
``` bash
|
||||||
|
sudo chmod +x /etc/pacman.d/hooks.bin/grubupdatefix
|
||||||
|
```
|
||||||
|
|
||||||
## More info
|
## More info
|
||||||
For more information on pacman hooks, see [the thread on the Manjaro forum](https://forum.manjaro.org/t/howto-create-useful-pacman-hooks/55020/3), or [the Arch Wiki](https://wiki.archlinux.org/title/Pacman#Hooks).
|
For more information on pacman hooks, see [the thread on the Manjaro forum](https://forum.manjaro.org/t/howto-create-useful-pacman-hooks/55020/3), or [the Arch Wiki](https://wiki.archlinux.org/title/Pacman#Hooks).
|
Loading…
x
Reference in New Issue
Block a user