Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f0efcff07f | |||
| 7280e186dd | |||
| f8d3ba4327 | |||
| 251d8795ea | |||
| 33cfff35b7 | |||
| 5e5aac70fa | |||
| ed79033f44 | |||
| c87fa90e62 | |||
| 9377f60b7d | |||
| 8c2e8d5e08 | |||
| b56434f44e | |||
| ddef5769ee | |||
| 6dd30696b4 | |||
| f89cb7e93b | |||
| 28b7cb428b |
@ -1 +1 @@
|
||||
http://xplayer-ota.pureroad.cn/files_20251113_132458.tar.xz
|
||||
http://xplayer-ota.pureroad.cn/files_20251203_232832.tar.xz
|
||||
|
||||
@ -80,6 +80,34 @@
|
||||
mode: '0644'
|
||||
tags: apt
|
||||
|
||||
- name: check missing packages
|
||||
shell:
|
||||
cmd: |
|
||||
MISSING=""
|
||||
for pkg in {{ packages }}; do
|
||||
# 先检查原包名
|
||||
if dpkg-query -W -f='${Status}' "$pkg" 2>/dev/null | grep -q "install ok installed"; then
|
||||
continue
|
||||
# 如果原包名不存在,尝试检查带 t64 后缀的版本
|
||||
elif dpkg-query -W -f='${Status}' "${pkg}t64" 2>/dev/null | grep -q "install ok installed"; then
|
||||
continue
|
||||
else
|
||||
MISSING="yes"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -n "$MISSING" ]; then
|
||||
echo "missing"
|
||||
else
|
||||
echo "all_installed"
|
||||
fi
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: package_check
|
||||
changed_when: false
|
||||
ignore_errors: yes
|
||||
tags: apt
|
||||
|
||||
- name: update apt cache
|
||||
shell:
|
||||
cmd: |
|
||||
@ -88,6 +116,7 @@
|
||||
else
|
||||
apt-get update -y
|
||||
fi
|
||||
when: package_check.stdout == "missing"
|
||||
ignore_errors: yes
|
||||
tags: apt
|
||||
|
||||
@ -99,6 +128,7 @@
|
||||
else
|
||||
apt-get install -y {{ packages }}
|
||||
fi
|
||||
when: package_check.stdout == "missing"
|
||||
ignore_errors: yes
|
||||
tags: apt
|
||||
|
||||
@ -269,6 +299,7 @@
|
||||
mode: '0755'
|
||||
- src: ../files/99-usb-auto-mount.rules
|
||||
dest: /etc/udev/rules.d/99-usb-auto-mount.rules
|
||||
|
||||
mode: '0644'
|
||||
tags: usb
|
||||
notify:
|
||||
|
||||
78
sync.sh
78
sync.sh
@ -1,43 +1,43 @@
|
||||
mkdir -p files
|
||||
rsync 5cw:/etc/ssh/sshd_config files/sshd_config
|
||||
rsync 5cw:/root/.ssh/authorized_keys files/authorized_keys
|
||||
rsync 5cw:/etc/asound.conf files/asound.conf
|
||||
rsync 5cw:/usr/local/bin/camilladsp files/camilladsp
|
||||
rsync 5cw:/etc/camilladsp.yml files/camilladsp.yml
|
||||
# rsync -avz 5cw:/root/camilladsp-conf files/
|
||||
rsync 5cw:/usr/local/lib/systemd/system/mpd.socket files/mpd.socket
|
||||
rsync 5cw:/usr/local/lib/systemd/system/mpd.service files/mpd.service
|
||||
rsync 5cw:/usr/local/bin/mpd files/mpd
|
||||
rsync 5cw:/etc/mpd.conf files/mpd.conf
|
||||
rsync 5cw:/etc/systemd/system/xplayer-server.service files/xplayer-server.service
|
||||
rsync 5cw:/usr/local/bin/server files/server
|
||||
rsync 5cw:/usr/bin/ota files/ota
|
||||
rsync -avz 5cw:/etc/apt/sources.list.d ./files/
|
||||
rsync 5cw:/etc/modules files/modules
|
||||
rsync 5cw:/etc/modprobe.d/snd-aloop.conf files/snd-aloop.conf
|
||||
rsync 5cw:/etc/systemd/system/camilladsp.service files/camilladsp.service
|
||||
rsync 5cw:/usr/lib/systemd/system/bluetooth.service files/bluetooth.service
|
||||
rsync 5cw:/etc/udev/rules.d/99-usb-auto-mount.rules files/99-usb-auto-mount.rules
|
||||
rsync 5cw:/usr/local/bin/usb-mount.sh files/usb-mount.sh
|
||||
rsync 5cw:/etc/custom_service/start_service.sh files/start_service.sh
|
||||
rsync 5cw:/etc/bluetooth/input.conf files/input.conf
|
||||
rsync 5cw:/etc/bluetooth/main.conf files/main.conf
|
||||
rsync 5cw:/etc/default/cpufrequtils files/cpufrequtils
|
||||
rsync 5cw:/usr/lib/systemd/system/shairport-sync.service files/shairport-sync.service
|
||||
rsync 5cw:/usr/local/bin/shairport-sync files/shairport-sync
|
||||
rsync 5cw:/etc/shairport-sync.conf files/shairport-sync.conf
|
||||
rsync 5cw:/usr/bin/shairport_monitor.sh files/shairport_monitor.sh
|
||||
# rsync 5cw:/etc/upmpdcli.conf files/upmpdcli.conf
|
||||
rsync 5cw:/usr/bin/sing-box files/sing-box
|
||||
rsync 5cw:/etc/systemd/system/sing-box.service files/sing-box.service
|
||||
rsync -avz --exclude='login/' 5cw:/srv/login/ files/login/
|
||||
rsync 5cw:/usr/bin/led-startup.sh files/led-startup.sh
|
||||
rsync 5cw:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
||||
rsync 5cw:/usr/bin/install_bluealsa_openaptx.sh files/install_bluealsa_openaptx.sh
|
||||
rsync 5cw:/etc/systemd/system/bluealsa.service files/bluealsa.service
|
||||
rsync 5cw:/srv/bluez-alsa/bluealsa_bundle.tar.gz files/bluealsa_bundle.tar.gz
|
||||
rsync 5cw:/usr/local/bin/apt-fast files/apt-fast
|
||||
rsync 5cw:/etc/apt-fast.conf files/apt-fast.conf
|
||||
rsync 5c:/etc/ssh/sshd_config files/sshd_config
|
||||
rsync 5c:/root/.ssh/authorized_keys files/authorized_keys
|
||||
rsync 5c:/etc/asound.conf files/asound.conf
|
||||
rsync 5c:/usr/local/bin/camilladsp files/camilladsp
|
||||
rsync 5c:/etc/camilladsp.yml files/camilladsp.yml
|
||||
# rsync -avz 5c:/root/camilladsp-conf files/
|
||||
rsync 5c:/usr/local/lib/systemd/system/mpd.socket files/mpd.socket
|
||||
rsync 5c:/usr/local/lib/systemd/system/mpd.service files/mpd.service
|
||||
rsync 5c:/usr/local/bin/mpd files/mpd
|
||||
rsync 5c:/etc/mpd.conf files/mpd.conf
|
||||
rsync 5c:/etc/systemd/system/xplayer-server.service files/xplayer-server.service
|
||||
rsync 5c:/usr/local/bin/server files/server
|
||||
rsync 5c:/usr/bin/ota files/ota
|
||||
rsync -avz 5c:/etc/apt/sources.list.d ./files/
|
||||
rsync 5c:/etc/modules files/modules
|
||||
rsync 5c:/etc/modprobe.d/snd-aloop.conf files/snd-aloop.conf
|
||||
rsync 5c:/etc/systemd/system/camilladsp.service files/camilladsp.service
|
||||
rsync 5c:/usr/lib/systemd/system/bluetooth.service files/bluetooth.service
|
||||
rsync 5c:/etc/udev/rules.d/99-usb-auto-mount.rules files/99-usb-auto-mount.rules
|
||||
rsync 5c:/usr/local/bin/usb-mount.sh files/usb-mount.sh
|
||||
rsync 5c:/etc/custom_service/start_service.sh files/start_service.sh
|
||||
rsync 5c:/etc/bluetooth/input.conf files/input.conf
|
||||
rsync 5c:/etc/bluetooth/main.conf files/main.conf
|
||||
rsync 5c:/etc/default/cpufrequtils files/cpufrequtils
|
||||
rsync 5c:/usr/lib/systemd/system/shairport-sync.service files/shairport-sync.service
|
||||
rsync 5c:/usr/local/bin/shairport-sync files/shairport-sync
|
||||
rsync 5c:/etc/shairport-sync.conf files/shairport-sync.conf
|
||||
rsync 5c:/usr/bin/shairport_monitor.sh files/shairport_monitor.sh
|
||||
# rsync 5c:/etc/upmpdcli.conf files/upmpdcli.conf
|
||||
rsync 5c:/usr/bin/sing-box files/sing-box
|
||||
rsync 5c:/etc/systemd/system/sing-box.service files/sing-box.service
|
||||
rsync -avz --exclude='login/' 5c:/srv/login/ files/login/
|
||||
rsync 5c:/usr/bin/led-startup.sh files/led-startup.sh
|
||||
rsync 5c:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
||||
rsync 5c:/usr/bin/install_bluealsa_openaptx.sh files/install_bluealsa_openaptx.sh
|
||||
rsync 5c:/etc/systemd/system/bluealsa.service files/bluealsa.service
|
||||
rsync 5c:/srv/bluez-alsa/bluealsa_bundle.tar.gz files/bluealsa_bundle.tar.gz
|
||||
rsync 5c:/usr/local/bin/apt-fast files/apt-fast
|
||||
rsync 5c:/etc/apt-fast.conf files/apt-fast.conf
|
||||
|
||||
# Clean up macOS resource fork files
|
||||
find files -name "._*" -type f -delete
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user