Compare commits
No commits in common. "main" and "v0.0.90" have entirely different histories.
@ -1 +1 @@
|
|||||||
http://xplayer-ota.pureroad.cn/files_20251203_232832.tar.xz
|
http://xplayer-ota.pureroad.cn/files_20251113_132458.tar.xz
|
||||||
|
|||||||
@ -80,34 +80,6 @@
|
|||||||
mode: '0644'
|
mode: '0644'
|
||||||
tags: apt
|
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
|
- name: update apt cache
|
||||||
shell:
|
shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
@ -116,7 +88,6 @@
|
|||||||
else
|
else
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
fi
|
fi
|
||||||
when: package_check.stdout == "missing"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags: apt
|
tags: apt
|
||||||
|
|
||||||
@ -128,7 +99,6 @@
|
|||||||
else
|
else
|
||||||
apt-get install -y {{ packages }}
|
apt-get install -y {{ packages }}
|
||||||
fi
|
fi
|
||||||
when: package_check.stdout == "missing"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags: apt
|
tags: apt
|
||||||
|
|
||||||
@ -299,7 +269,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
- src: ../files/99-usb-auto-mount.rules
|
- src: ../files/99-usb-auto-mount.rules
|
||||||
dest: /etc/udev/rules.d/99-usb-auto-mount.rules
|
dest: /etc/udev/rules.d/99-usb-auto-mount.rules
|
||||||
|
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
tags: usb
|
tags: usb
|
||||||
notify:
|
notify:
|
||||||
|
|||||||
78
sync.sh
78
sync.sh
@ -1,43 +1,43 @@
|
|||||||
mkdir -p files
|
mkdir -p files
|
||||||
rsync 5c:/etc/ssh/sshd_config files/sshd_config
|
rsync 5cw:/etc/ssh/sshd_config files/sshd_config
|
||||||
rsync 5c:/root/.ssh/authorized_keys files/authorized_keys
|
rsync 5cw:/root/.ssh/authorized_keys files/authorized_keys
|
||||||
rsync 5c:/etc/asound.conf files/asound.conf
|
rsync 5cw:/etc/asound.conf files/asound.conf
|
||||||
rsync 5c:/usr/local/bin/camilladsp files/camilladsp
|
rsync 5cw:/usr/local/bin/camilladsp files/camilladsp
|
||||||
rsync 5c:/etc/camilladsp.yml files/camilladsp.yml
|
rsync 5cw:/etc/camilladsp.yml files/camilladsp.yml
|
||||||
# rsync -avz 5c:/root/camilladsp-conf files/
|
# rsync -avz 5cw:/root/camilladsp-conf files/
|
||||||
rsync 5c:/usr/local/lib/systemd/system/mpd.socket files/mpd.socket
|
rsync 5cw:/usr/local/lib/systemd/system/mpd.socket files/mpd.socket
|
||||||
rsync 5c:/usr/local/lib/systemd/system/mpd.service files/mpd.service
|
rsync 5cw:/usr/local/lib/systemd/system/mpd.service files/mpd.service
|
||||||
rsync 5c:/usr/local/bin/mpd files/mpd
|
rsync 5cw:/usr/local/bin/mpd files/mpd
|
||||||
rsync 5c:/etc/mpd.conf files/mpd.conf
|
rsync 5cw:/etc/mpd.conf files/mpd.conf
|
||||||
rsync 5c:/etc/systemd/system/xplayer-server.service files/xplayer-server.service
|
rsync 5cw:/etc/systemd/system/xplayer-server.service files/xplayer-server.service
|
||||||
rsync 5c:/usr/local/bin/server files/server
|
rsync 5cw:/usr/local/bin/server files/server
|
||||||
rsync 5c:/usr/bin/ota files/ota
|
rsync 5cw:/usr/bin/ota files/ota
|
||||||
rsync -avz 5c:/etc/apt/sources.list.d ./files/
|
rsync -avz 5cw:/etc/apt/sources.list.d ./files/
|
||||||
rsync 5c:/etc/modules files/modules
|
rsync 5cw:/etc/modules files/modules
|
||||||
rsync 5c:/etc/modprobe.d/snd-aloop.conf files/snd-aloop.conf
|
rsync 5cw:/etc/modprobe.d/snd-aloop.conf files/snd-aloop.conf
|
||||||
rsync 5c:/etc/systemd/system/camilladsp.service files/camilladsp.service
|
rsync 5cw:/etc/systemd/system/camilladsp.service files/camilladsp.service
|
||||||
rsync 5c:/usr/lib/systemd/system/bluetooth.service files/bluetooth.service
|
rsync 5cw:/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 5cw:/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 5cw:/usr/local/bin/usb-mount.sh files/usb-mount.sh
|
||||||
rsync 5c:/etc/custom_service/start_service.sh files/start_service.sh
|
rsync 5cw:/etc/custom_service/start_service.sh files/start_service.sh
|
||||||
rsync 5c:/etc/bluetooth/input.conf files/input.conf
|
rsync 5cw:/etc/bluetooth/input.conf files/input.conf
|
||||||
rsync 5c:/etc/bluetooth/main.conf files/main.conf
|
rsync 5cw:/etc/bluetooth/main.conf files/main.conf
|
||||||
rsync 5c:/etc/default/cpufrequtils files/cpufrequtils
|
rsync 5cw:/etc/default/cpufrequtils files/cpufrequtils
|
||||||
rsync 5c:/usr/lib/systemd/system/shairport-sync.service files/shairport-sync.service
|
rsync 5cw:/usr/lib/systemd/system/shairport-sync.service files/shairport-sync.service
|
||||||
rsync 5c:/usr/local/bin/shairport-sync files/shairport-sync
|
rsync 5cw:/usr/local/bin/shairport-sync files/shairport-sync
|
||||||
rsync 5c:/etc/shairport-sync.conf files/shairport-sync.conf
|
rsync 5cw:/etc/shairport-sync.conf files/shairport-sync.conf
|
||||||
rsync 5c:/usr/bin/shairport_monitor.sh files/shairport_monitor.sh
|
rsync 5cw:/usr/bin/shairport_monitor.sh files/shairport_monitor.sh
|
||||||
# rsync 5c:/etc/upmpdcli.conf files/upmpdcli.conf
|
# rsync 5cw:/etc/upmpdcli.conf files/upmpdcli.conf
|
||||||
rsync 5c:/usr/bin/sing-box files/sing-box
|
rsync 5cw:/usr/bin/sing-box files/sing-box
|
||||||
rsync 5c:/etc/systemd/system/sing-box.service files/sing-box.service
|
rsync 5cw:/etc/systemd/system/sing-box.service files/sing-box.service
|
||||||
rsync -avz --exclude='login/' 5c:/srv/login/ files/login/
|
rsync -avz --exclude='login/' 5cw:/srv/login/ files/login/
|
||||||
rsync 5c:/usr/bin/led-startup.sh files/led-startup.sh
|
rsync 5cw:/usr/bin/led-startup.sh files/led-startup.sh
|
||||||
rsync 5c:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
rsync 5cw:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
||||||
rsync 5c:/usr/bin/install_bluealsa_openaptx.sh files/install_bluealsa_openaptx.sh
|
rsync 5cw:/usr/bin/install_bluealsa_openaptx.sh files/install_bluealsa_openaptx.sh
|
||||||
rsync 5c:/etc/systemd/system/bluealsa.service files/bluealsa.service
|
rsync 5cw:/etc/systemd/system/bluealsa.service files/bluealsa.service
|
||||||
rsync 5c:/srv/bluez-alsa/bluealsa_bundle.tar.gz files/bluealsa_bundle.tar.gz
|
rsync 5cw:/srv/bluez-alsa/bluealsa_bundle.tar.gz files/bluealsa_bundle.tar.gz
|
||||||
rsync 5c:/usr/local/bin/apt-fast files/apt-fast
|
rsync 5cw:/usr/local/bin/apt-fast files/apt-fast
|
||||||
rsync 5c:/etc/apt-fast.conf files/apt-fast.conf
|
rsync 5cw:/etc/apt-fast.conf files/apt-fast.conf
|
||||||
|
|
||||||
# Clean up macOS resource fork files
|
# Clean up macOS resource fork files
|
||||||
find files -name "._*" -type f -delete
|
find files -name "._*" -type f -delete
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user