summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/bootOs
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-07-13 09:11:23 +0000
committerramon <ramongomez@us.es>2015-07-13 09:11:23 +0000
commit16360e4385c8d8f92ab16208980df03844524e90 (patch)
treedbbf33f3a59fc5ce593a00f65d514624aaa9870b /client/shared/scripts/bootOs
parent6dedc02d07367fa19b2283d09099403588dcf64d (diff)
#717: Función {{{ogBoot}}} toma un 3er parámetro opcional que sustituye a la llamada a la función {{{ogLinuxBootParameters}}}; el script {{{bootOs}}} envía todos sus parámetros a {{{ogBoot}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4661 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/bootOs')
-rwxr-xr-xclient/shared/scripts/bootOs6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/shared/scripts/bootOs b/client/shared/scripts/bootOs
index 90e5006c..275bbc0d 100755
--- a/client/shared/scripts/bootOs
+++ b/client/shared/scripts/bootOs
@@ -3,8 +3,8 @@
# (puede usarse como base para el programa de arranque usado por OpenGNSys Admin).
PROG="$(basename $0)"
-if [ $# -ne 2 ]; then
- ogRaiseError $OG_ERR_FORMAT "Formato: $PROG ndisco nparticion"
+if [ $# -lt 2 -o $# gt 3 ]; then
+ ogRaiseError $OG_ERR_FORMAT "Formato: $PROG ndisco nfilesys [kernelparams]"
exit $?
fi
@@ -50,5 +50,5 @@ esac
echo "[70] Desmontar cache local."
ogUnmountCache
echo "[90] Arrancar sistema operativo."
-ogBoot $1 $2
+ogBoot "$@"