blob: ad9bb3c07cee50977cc6d4280c9e4d1246bd1988 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/sh
set -ex
THUNDERBOLT=YES
pkglist='cmake
syncthing
brave-bin
neovim
tree-sitter-cli
age
age-plugin-yubikey
rage-encryption
libfido2
pcsclite
ccid
oath-toolkit
restic
geary
darktable
firewalld
wireguard-tools
lsof
ksshaskpass
nftables
ansible
ghostty
yay'
sudo pacman -S --needed $(echo "$pkglist" | awk '{print $1}' | tr '\n' ' ')
sudo systemctl disable ufw || true
sudo systemctl stop ufw || true
# sudo systemctl enable firewalld || true
# sudo systemctl start firewalld || true
[ -x "$(command -v oksh)" ] || yay -S oksh
[ -x "$(command -v dpw)" ] || ./compile/dpw.sh
if [ "$THUNDERBOLT" = "YES" ] ; then
sudo sh -c 'cat > /etc/udev/rules.d/99-removable.rules <<EOF
# /etc/udev/rules.d/99-removable.rules
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
EOF'
fi
|