summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2017-11-06 11:12:32 +0000
committeririna <irinagomez@us.es>2017-11-06 11:12:32 +0000
commit50aa7a79f0fc61e84c24bc312ed2a8a1ed38014d (patch)
treecc46d2273b5bfc6693c63e5d794e12c5d05b815f
parent4705afe6760f3628e6b6bcc483ee3fbff88fb43d (diff)
#797 Se elimina mensage de error de 'ls' cuando no existe OgLive en cache
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5497 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xclient/shared/scripts/grubSyntax4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/shared/scripts/grubSyntax b/client/shared/scripts/grubSyntax
index 46e2c38a..209cfc00 100755
--- a/client/shared/scripts/grubSyntax
+++ b/client/shared/scripts/grubSyntax
@@ -38,9 +38,9 @@ grub-install --version | grep 1.99 && cp -r /opt/opengnsys/lib/os-probes/* /usr/
#fichero de reconocimeinto de grub
#fichero de lsb-release en la cache (al final de este scripts se elimina esta entrada para que el browser no lo muestre
-if [ $(ls /opt/opengnsys/cache/boot/$oglivedir/ogvmlinuz) ]; then
+if [ $(ls /opt/opengnsys/cache/boot/$oglivedir/ogvmlinuz 2>/dev/null) ]; then
sed -i 's|/boot/\${oglivedir}/ogvmlinuz |/vmlinuz |i' /usr/lib/linux-boot-probes/mounted/90fallback
- sed -i 's|/vmlinuz |/vmlinuz /boot/\${oglivedir}/ogvmlinuz |1' /usr/lib/linux-boot-probes/mounted/90fallback
+ sed -i 's|/vmlinuz |/vmlinuz /boot/\${oglivedir}/ogvmlinuz |1' /usr/lib/linux-boot-probes/mounted/90fallback
mkdir -p /opt/opengnsys/cache/etc/
echo "DISTRIB_ID=Ubuntu" > /opt/opengnsys/cache/etc/lsb-release
echo "DISTRIB_RELEASE= " >> /opt/opengnsys/cache/etc/lsb-release