summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/preinit/fileslinks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/etc/preinit/fileslinks.sh')
-rwxr-xr-xclient/shared/etc/preinit/fileslinks.sh25
1 files changed, 18 insertions, 7 deletions
diff --git a/client/shared/etc/preinit/fileslinks.sh b/client/shared/etc/preinit/fileslinks.sh
index ddea1198..2e71340d 100755
--- a/client/shared/etc/preinit/fileslinks.sh
+++ b/client/shared/etc/preinit/fileslinks.sh
@@ -6,9 +6,9 @@
#@version 0.9
#@author Ramon Gomez, ETSII Universidad de Sevilla
#@date 2009-10-10
-#@version 1.0
+#@version 1.0.5 - Enlace para librería libmac.
#@author Ramon Gomez, ETSII Universidad de Sevilla
-#@date 2011-03-21
+#@date 2012-06-28
#*/
@@ -17,7 +17,10 @@ if [ -n "$OPENGNSYS" ]; then
echo "${MSG_MAKELINKS:-.}"
# Shell BASH por defecto (para usar "runtest")
- ln -fs /bin/bash /bin/sh
+ ln -fs /bin/bash /bin/sh 2>/dev/null
+
+ # Enlace a la librería libmac para ld-mac.
+ [ -f /usr/lib/libmac.so ] || ln -fs $OGLIB/libmac.so /usr/lib 2>/dev/null
# Crear directorio de bloqueos
mkdir -p /var/lock 2>/dev/null || mkdir -p /run/lock
@@ -26,13 +29,21 @@ if [ -n "$OPENGNSYS" ]; then
touch $OGLOGCOMMAND $OGLOGCOMMAND.tmp $OGLOGSESSION /tmp/menu.tmp
chmod 777 $OGLOGCOMMAND $OGLOGCOMMAND.tmp $OGLOGSESSION /tmp/menu.tmp
-# # Directorio de tipos de letras para el browser.
+ # Enlaces para Qt Embeded.
QTDIR="/usr/local"
- # mkdir -p $QTDIR/lib
- # ln -fs $OGLIB/fonts $QTDIR/lib
+ mkdir -p $QTDIR/{etc,lib,plugins}
+ for i in $OGLIB/qtlib/*; do
+ [ -f $QTDIR/lib/$i ] || ln -fs $i $QTDIR/lib 2>/dev/null
+ done
+ for i in $OGLIB/qtplugins/*; do
+ [ -f $QTDIR/plugins/$i ] || ln -fs $i $QTDIR/plugins 2>/dev/null
+ done
+ for i in $OGETC/*.qmap; do
+ [ -f $QTDIR/etc/$i ] || ln -fs $i $QTDIR/etc 2>/dev/null
+ done
else
- # FIXME Error: entorno de OpenGNSys no configurado.
+ # FIXME Error: entorno de OpenGnSys no configurado.
echo "Error: OpenGnSys environment is not configured." # FIXME: definir mensaje.
exit 1
fi