flutterbrony pirms 5 mēnešiem
vecāks
revīzija
0c31a86d30
3 mainītis faili ar 17 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      README.md
  2. +13
    -0
      files/etc/systemd/system/mpv.service
  3. +1
    -0
      sudo

+ 3
- 1
README.md Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt