Home

how can you add files /Lib in systeme Spark ???

pop1234

Usuario
Amigo OpenSPA
20 Nov 2012
49
34
0
Hello

how can you add files /Lib in systeme Spark

i have added files and gave them permission 755

but when you restart the device disappear added files

is there a solution
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
configuras en el autorun.sh para que en cada inicio se vuelvan a añadir en /lib.

autorun.sh configure the start so that each re-add in /lib.
 

return

Usuario
Amigo OpenSPA
12 Feb 2012
49
15
0
Valencia
Mecha means that you can put a line in the script autorun.sh for copying the files in the /lib folder everytime you reboot the deco.
Or you can look for the other libraries folders included in the path checking the output of the env command, search the one inside the /root path and copy your files there only once.
 

Mecha

Usuario Destacado
Loco por OpenSPA
Fan de OpenSPA
14 Ene 2010
4.132
819
0
España
busca el archivo autorun.sh (este script se ejecuta automaticamente en cada inicio del sistema spark)
editalo y fijate como se crean en cada inicio del sistema unos link (accesos directo) en la ruta de librerias /usr/lib/ que indican la ruta y nombre donde se alojan las librerias realmente.

ejemplo:
ln -s /var/mislib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so.6.3.18

en el ejemplo la ruta /var/mislib/ puede ser la ruta de una carpeta donde tu guardes las librerias y que no se borren al reiniciar el firmware, por ejemplo en las carpetas de plugins.

tambien en el autorun.sh si lo prefieres puedes incluir comandos de copiar, para copiar archivos de una ruta donde se encuentren y no se borren en cada inicio, a la ruta de librerias.
ejemplo:
cp -f /var/mislib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so.6.3.18