summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook
diff options
context:
space:
mode:
Diffstat (limited to 'configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook')
-rw-r--r--configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook13
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook b/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook
new file mode 100644
index 0000000..82dd199
--- /dev/null
+++ b/configs/lxde-openrc/airootfs/etc/pacman.d/hooks/40-locale-gen.hook
@@ -0,0 +1,13 @@
+# remove from airootfs!
+[Trigger]
+Operation = Install
+Type = Package
+Target = glibc
+
+[Action]
+Description = Uncommenting en_US.UTF-8 locale and running locale-gen...
+When = PostTransaction
+Depends = glibc
+Depends = sed
+Depends = sh
+Exec = /bin/sh -c "sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen && locale-gen"