summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/etc/local.d/etc-pacman.d-gnupg.start
blob: 8a7139a993d1253a94743497a0d624382a29039c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# Temporary /etc/pacman.d/gnupg directory
fstype="$(findmnt /etc/pacman.d/gnupg -o FSTYPE -Un)"

test -d /etc/pacman.d/gnupg || mkdir /etc/pacman.d/gnupg
if ! [[ "$fstype" == tmpfs ]]; then
  mount -o mode=0755 -t tmpfs tmpfs /etc/pacman.d/gnupg
fi