I wrote a short script to kill processes and umount filesystems which
are not needed when everything is well configured and you just want to
play music :


#!/bin/sh
# if you are not using wlan you can umount this :
sudo umount /dev/loop15 /dev/loop16 /dev/loop17 /dev/loop18 /dev/loop20
/dev/loop21 /dev/loop22 /dev/loop23 /dev/loop24
# umount other not needed fs:
sudo umount /dev/loop9 /dev/loop10 /dev/loop19
# kill some other processes
sudo kill -9 $(pidof udevd)
sudo kill -9 $(pidof udhcpc)
# finally kill dropbear and sh
sudo killall dropbear sh
sudo umount /dev/loop0
exit 0


You can save this script for example as /usr/local/sbin/playonly, make
it executable with

sudo chmod +x /usr/local/sbin/playonly

than insert a line with

/usr/local/sbin/playonly

in /opt/.filetool.lst

start "picoreplayer", choose "10) Make a backup", the script will be
saved.

than just start

playonly

Script will kill some procsess and umount different fs, your login
connection will finish. In this way there is more memory and cpu power
available for squeezelite and maybe :) with a very good hifi system
there will be better sound quality.

When you restart pi, than everything will be running again, to start the
script you have to login and start "playonly".

I am not linux expert, i tested it as good as i could, i can play any
kind of music - waves, mp3, internet radio, i didn't noticed any
problems.


------------------------------------------------------------------------
praganj's Profile: http://forums.slimdevices.com/member.php?userid=41091
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to