The Looqs Meebox is a typical NAS and one of the things NAS’s do is they refresh their root (/) filesystem on boot, Its a kinda failsafe mechanism I guess…
Anyway this means if you want too add any startup scripts/edit files etc on boot its a little hard.. However where there’s a will there is a way!
I noticed that although root (/) is in ram /system is mapped to the harddisk, I also noticed there are a number of files which are executed at boot.. One of these is /system/hddapp/etc/rc
Bingo, if you want something to start at boot time, or you need a filesystem modification done at boot (e.g. /opt linked to /mnt/ide/opt) then simply put it at the end of this file.
e.g. The end of my rc file looks like this
#Added stuff by Angelo
#re create /opt link
ln -s /mnt/ide3/opt /opt
# Start TwonkyServer
/mnt/ide3/apps/twonky7.0.5/twonkystarter -appdata /mnt/ide3/apps/twonky7.0.5/two