summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook
diff options
context:
space:
mode:
Diffstat (limited to 'configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook')
-rw-r--r--configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook b/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook
new file mode 100644
index 0000000..ad0b5ba
--- /dev/null
+++ b/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook
@@ -0,0 +1,12 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = pacman-mirrorlist
+
+[Action]
+Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist...
+When = PostTransaction
+Depends = pacman-mirrorlist
+Depends = sed
+Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist