-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathsync.sh
More file actions
executable file
·39 lines (31 loc) · 995 Bytes
/
sync.sh
File metadata and controls
executable file
·39 lines (31 loc) · 995 Bytes
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
if [ -z "$1" ]; then
echo "Usage: $0 <host>"
exit 1
fi
HOST=$1
RSYNC="rsync -rv --exclude .git --exclude venv --exclude __pycache__'"
USER=${2:-bazzite}
# sudo rm -rf ~/hhd-dev/hhd/venv
# python -m venv --system-site-packages ~/hhd-dev/hhd/venv
# ~/hhd-dev/hhd/venv/bin/pip install -e ~/hhd-dev/hhd
# sudo chcon -R -u system_u -r object_r --type=bin_t /var/home/$USER/hhd-dev/hhd/venv/bin
# sudo systemctl disable --now hhd
# sudo systemctl mask hhd
# sudo systemctl enable --now hhdl
# sudo nano /etc/systemd/system/hhdl.service
# [Unit]
# Description=Handheld Daemon Service
# [Service]
# ExecStart=/home/bazzite/hhd-dev/hhd/venv/bin/hhd --user bazzite
# Nice=-12
# Restart=on-failure
# RestartSec=10
# [Install]
# WantedBy=multi-user.target
# set -e
$RSYNC . $HOST:hhd-dev/hhd
ssh $HOST /bin/bash << EOF
# sudo systemctl restart hhdl
sudo systemctl stop hhdl
EOF
ssh -t $HOST "sudo HHD_HORI_STEAM=1 HHD_HIDE_ALL=1 HHD_BOOTC=1 ~/hhd-dev/hhd/venv/bin/hhd --user bazzite"