flutterbrony 5 mesi fa
parent
commit
0c31a86d30
3 ha cambiato i file con 17 aggiunte e 1 eliminazioni
  1. +3
    -1
      README.md
  2. +13
    -0
      files/etc/systemd/system/mpv.service
  3. +1
    -0
      sudo

+ 3
- 1
README.md Vedi File

@@ -72,9 +72,11 @@ To allow eggnogg to start on boot, we install it as a systemd service, you can w

```sh
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/mpv.service /etc/systemd/system/mpv.service
sudo systemctl daemon-reload
sudo systemctl enable eggnoggpi
sudo systemctl enable mpv
sudo systemctl start mpv
sudo systemctl start eggnoggpi
sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab
sudo echo "@reboot root mpv --loop /home/pi/music.opus" >> /etc/crontab
```

+ 13
- 0
files/etc/systemd/system/mpv.service Vedi File

@@ -0,0 +1,13 @@
[Unit]
Description=mpv audio service

[Service]
Restart=always
User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

ExecStart=/usr/bin/mpv --loop=inf --no-audio-display /home/pi/music.opus

[Install]
WantedBy=multi-user.target

+ 1
- 0
sudo Vedi File

@@ -0,0 +1 @@
@reboot root mpv --loop /home/pi/music.opus /etc/crontab

Caricamento…
Annulla
Salva