Hi thanks to user linvincible.
He, just posted in a thread
http://forum.tinycorelinux.net/index.php/topic,17449.0.html.
The thread is about some clever GPIO shutdown -stuff.
So i just pasted the line into my /home/tc/.profile
/home/tc/audio/squeezelite-armv6hf -n Tiny-squeeze -a 80::4: -o equal -z
And after reboot, without logging in, it starts my squeezelite, with working alsaequal ;-)
Jesper.
Hello RPI Forum.
I need to automatic execute a script, as user TC, otherwise it does not work
The script starts squeezelite with output to alsaequal equlizer
Looking at
ps aux output, when started as ROOT / bootlocal or as user TC, shows that excatly!
I have been reading/trying a lot of stuff, but cant get it to work, neither figure out howto do that ?
- IS THERE an easy, correct way of doing this ?
-- Best regards Jesper.
Scriptname = sqstart#!/bin/sh
/home/tc/audio/squeezelite-armv6hf -n Tiny-squeeze -a 80::4: -o equal -z
echo Squeezelite with Alsaequal START!
tc@box:~$ sudo ./sqstart
Squeezelite with Alsaequal START!1969 root [loop44]
2017 root [loop45]
2065 root [loop46]
2396 root /sbin/udevd --daemon
2399 root /sbin/udevd --daemon
2551 tc -sh
2613 root /sbin/udhcpc -b -i eth0 -x hostname box -p /var/run/udhcpc.eth0.pid
2625 root /usr/local/sbin/sshd
2639 root sshd: tc@pts/0
2642 tc -sh
2706 root [loop47]
2775 tc ps aux
tc@box:~$ ./sqstart
Squeezelite with Alsaequal START! 2399 root /sbin/udevd --daemon
2551 tc -sh
2613 root /sbin/udhcpc -b -i eth0 -x hostname box -p /var/run/udhcpc.eth0.pid
2625 root /usr/local/sbin/sshd
2639 root sshd: tc@pts/0
2642 tc -sh
2706 root [loop47]
2778 tc /home/tc/audio/squeezelite-armv6hf -n Tiny-squeeze -a 80 4 -o equal -z
2782 tc ps aux