Freevo X
Hans Fugal
hans at fugal.net
Wed Jul 19 17:26:07 MDT 2006
On Wed, 19 Jul 2006 at 10:17 -0600, Kyle Robinson wrote:
> Are you using a line in inittab that su's to your user and runs that command
> or an init script?
I could do either one, if needed. Actually maybe a runit script...
Yes, this works well, with the help of openvt.
Here's my runit script (/var/service/freevo/run):
#!/bin/sh
modprobe lirc-serial
ln -sf /dev/lirc0 /dev/lirc
chown fugalh:audio /dev/lirc0
/etc/init.d/lirc restart
exec openvt -sw -- su fugalh -c "startx -- :1 -layout ntsc"
It's not perfect; X doesn't die when openvt does, so sv stop/restart
doesn't work, but at least it starts on boot, and restarts if I
accidentally exit freevo. :)
--
Hans Fugal ; http://hans.fugal.net
There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself.
-- Johann Sebastian Bach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20060719/bb8c4985/attachment.pgp
More information about the PLUG
mailing list