From 97b8472e4a395a35ec0cc2d2dc1550fb9c378348 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Wed, 15 May 2019 14:13:17 +0200 Subject: #895 Fix initCache: if the size of the cache changes, it always formats the cache. ogCheckFs includes the CACHE file system type --- client/shared/scripts/initCache | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/shared') diff --git a/client/shared/scripts/initCache b/client/shared/scripts/initCache index 796ab84f..9caf0be0 100755 --- a/client/shared/scripts/initCache +++ b/client/shared/scripts/initCache @@ -69,6 +69,8 @@ else ogUnmountCache 2>/dev/null ogDeleteCache fi + # Tomamos el tamaño actual. Si no existe cache será 0. + OLDSIZE=$(ogGetCacheSize 2>/dev/null) || OLDSIZE=0 # Error si tamaño definido no es >0. if [ ! $SIZE -gt 0 ]; then @@ -83,9 +85,9 @@ else ogCreateCache $NDISK $NPART $SIZE ogUpdatePartitionTable $NDISK fi - # Si caché no montada y no formateada, formatear. + # Si caché no montada y no formateada o cambia el tamaño: formatear. CACHE=$(ogFindCache) || exit $? - if ! ogIsFormated $CACHE; then + if ! ogIsFormated $CACHE || [ $SIZE -ne $OLDSIZE ]; then echo "[50] Formatear caché local." ogFormatCache fi -- cgit v1.2.3-18-g5258 From 6a60a24f9ca91dbdb3ea0c123cb72d11c799d334 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Wed, 22 May 2019 19:24:15 +0200 Subject: #872: Fix a little bug when a client launch its browser. --- client/shared/etc/preinit/fileslinks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/shared') diff --git a/client/shared/etc/preinit/fileslinks.sh b/client/shared/etc/preinit/fileslinks.sh index b6fc7e2f..442c2920 100755 --- a/client/shared/etc/preinit/fileslinks.sh +++ b/client/shared/etc/preinit/fileslinks.sh @@ -32,7 +32,7 @@ if [ -n "$OPENGNSYS" ]; then # Enlaces para Qt Embeded. QTDIR="/usr/local" mkdir -p $QTDIR/{etc,lib,plugins} - for i in $OGLIB/qtlib/*; do + for i in $OGLIB/qtlib/* $OGLIB/fonts; do [ -f $QTDIR/lib/$i ] || ln -fs $i $QTDIR/lib 2>/dev/null done for i in $OGLIB/qtplugins/*; do -- cgit v1.2.3-18-g5258