pi xorg-server redshift xorg-xinput pkgfile libxtst xmacro
# like apt-cache
s pkgfile --update
- ;;&
-esac
-# background:
-# https://aur.archlinux.org/packages/xkbset/#comment-545419
-cert=$(mktemp)
-cat >$cert <<'EOF'
+ # background:
+ # https://aur.archlinux.org/packages/xkbset/#comment-545419
+ cert=$(mktemp)
+ cat >$cert <<'EOF'
-----BEGIN CERTIFICATE-----
MIIJADCCB+igAwIBAgIRAIVAhZ0TMbQ5jTm0koI8X6YwDQYJKoZIhvcNAQELBQAw
djELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAk1JMRIwEAYDVQQHEwlBbm4gQXJib3Ix
jjxDah2nGN59PRbxYvnKkKj9
-----END CERTIFICATE-----
EOF
-cat /etc/ssl/certs/ca-certificates.crt >> $cert
-CURL_CA_BUNDLE=$cert pi xkbset
+ cat /etc/ssl/certs/ca-certificates.crt >> $cert
+ CURL_CA_BUNDLE=$cert pi xkbset
+
+ ;;&
+ ubuntu|debian|fedora)
+ pi xkbset
+ ;;&
+esac
+
pi xbindkeys cryptsetup
EOF
fi
-for x in i w k; do
- s mount /$i || [[ $? == 32 ]] # 32 = already mounted
+for dir in /{i,w,k}; do
+ if mountpoint $dir; then continue; fi
+ s mkdir -p $dir
+ s chown ian:ian $dir
+ s mount $dir
done
rootdev=$(mount | sed -rn 's#^(\S+) on / .*#\1#p')
s mkdir /mnt/root
tu /etc/fstab <<< "$rootdev /mnt/root btrfs noatime,subvolid=0 0 0"
-s mount /mnt/root || [[ $? == 32 ]]
+mountpoint /mnt/root || s mount /mnt/root
idev=$(mount | sed -rn 's#^(\S+) on /i .*#\1#p')
if [[ $idev != $rootdev ]]; then
s mkdir /mnt/iroot
tu /etc/fstab <<< "$idev /mnt/iroot btrfs noatime,subvolid=0 0 0"
- s mount /mnt/iroot || [[ $? == 32 ]]
+ mountpoint /mnt/iroot || s mount /mnt/iroot
fi
# Do this again because it occasionally has changes and