diff options
author | ramon <ramongomez@us.es> | 2013-01-29 10:09:44 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2013-01-29 10:09:44 +0000 |
commit | b4a25559e129b261eaac66dc5413c06f39b19d6a (patch) | |
tree | 08ef00e1f99e1c6c4ffb60804225758fcbe542f6 | |
parent | acfb07db514bc158947ee40bd86266a8d952028c (diff) |
Recuperar ficheros que no corresponden con el cambio de la revisión r3501.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3502 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r-- | client/boot-tools/INSTALL.es.txt | 14 | ||||
-rwxr-xr-x | client/boot-tools/boottoolsfunctions.lib | 7 | ||||
-rw-r--r-- | client/boot-tools/includes/etc/initramfs-tools/modules | 13 | ||||
-rw-r--r-- | client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions | 58 | ||||
-rwxr-xr-x | client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh | 36 | ||||
-rw-r--r-- | client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.Xwindow | 4 | ||||
-rwxr-xr-x | client/shared/bin/browser2 | bin | 0 -> 25407040 bytes |
7 files changed, 42 insertions, 90 deletions
diff --git a/client/boot-tools/INSTALL.es.txt b/client/boot-tools/INSTALL.es.txt index e86997d0..c65f5a27 100644 --- a/client/boot-tools/INSTALL.es.txt +++ b/client/boot-tools/INSTALL.es.txt @@ -30,19 +30,6 @@ find /tmp/opengnsys_installer/ -name .svn -type d -exec rm -fr {} \; 2>/dev/null #2. Ejecutar el instalador: /tmp/opengnsys_installer/opengnsys/client/boot-tools/boottoolsgenerator.sh; -Notas para ejecución del instalador en Ubuntu 12.10: -- Configuración openssh-client: - - *** ssh_config (Y/I/N/O/D/Z) [default=N] ? [intro] -- Mapa de caracteres: - - Pantalla "Configuring console-data": elegir "Select keymap from full list" - - Keymap: pc / qwerty / Spanish / Standard / Standard -- Clave publica del servidor - - verwrite (y/n)? [intro] -- Mapa de caracteres (repetición): - - Pantalla "Configuring console-data": - - Select keymap from full list - - pc / qwerty / Spanish / Standard / Standard, UTF-8, Combined - Latin; Slavic Cyrillic; Greek, Fixed, 16 - @@ -60,4 +47,3 @@ NOTA: boottollsfuncions.lib -> btogSetfsBase bootsoftwareinstall -> packages ->sw.testing - diff --git a/client/boot-tools/boottoolsfunctions.lib b/client/boot-tools/boottoolsfunctions.lib index 09ab220f..b08dbbae 100755 --- a/client/boot-tools/boottoolsfunctions.lib +++ b/client/boot-tools/boottoolsfunctions.lib @@ -58,13 +58,6 @@ case "${1,,}" in OSARCH="i386" OSHTTP="http://es.archive.ubuntu.com/ubuntu/" ;; - quantal) - OSDISTRIB="ubuntu" - OSCODENAME="quantal" - OSRELEASE="3.7.3-030703-generic" - uname -a | grep x86_64 > /dev/null && OSARCH="amd64" || OSARCH="i386" - OSHTTP="http://es.archive.ubuntu.com/ubuntu/" - ;; host | *) OSDISTRIB=$(lsb_release -is) OSCODENAME=$(lsb_release -cs) diff --git a/client/boot-tools/includes/etc/initramfs-tools/modules b/client/boot-tools/includes/etc/initramfs-tools/modules index 5dd1d722..8bac1d4b 100644 --- a/client/boot-tools/includes/etc/initramfs-tools/modules +++ b/client/boot-tools/includes/etc/initramfs-tools/modules @@ -8,12 +8,7 @@ # # raid1 # sd_mod -# Kernel 3.2 video. -#vga16b -#vesafb -#fbcon -# Kernel 3.7 video. -uvesafb -# Kernel 3.7 meta-devices. -dm-raid -dm-multipath +vga16b +vesafb +fbcon + diff --git a/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions b/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions index 60b5ce99..5bd4c5db 100644 --- a/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions +++ b/client/boot-tools/includes/etc/initramfs-tools/scripts/ogfunctions @@ -160,10 +160,9 @@ ogPostConfigureFS() #####echo "nameserver $ogdns" > /etc/resolv.conf #configuramos el dns posterior ubuntu 12.04 #####echo "nameserver $ogdns" > /etc/resolvconf/resolv.conf.d/tail - if [ -n "${ogdns}" ]; then - mkdir -p /run/resolvconf - echo "nameserver $ogdns" > /run/resolvconf/resolv.conf - fi + [ -n "${ogdns}" ] && mkdir -p /run/resolvconf + [ -n "${ogdns}" ] && touch /run/resolvconf/resolv.conf + [ -n "${ogdns}" ] && echo "nameserver $ogdns" > /run/resolvconf/resolv.conf #configuramos el uso del servicio http proxy [ -n "${ogproxy}" ] && export http_proxy="$ogproxy" @@ -496,20 +495,20 @@ else #echo "variable BOOTIF no exportada, intentamos detectar que interfaz se ha iniciado" IP=$ip #TODO Detectar que interfaz se ha iniciado - case "$IP" in + case ${IP} in none|off) - return 0 - ;; - ""|on|any) - # Bring up device - DEVICE=eth0 - ;; - dhcp|bootp|rarp|both) - DEVICE=eth0 - ;; - *) - DEVICE=`echo $IP | cut -f6 -d:` - ;; + return 0 + ;; + ""|on|any) + # Bring up device + DEVICE=eth0 + ;; + dhcp|bootp|rarp|both) + DEVICE=eth0 + ;; + *) + DEVICE=`echo $IP | cut -f6 -d:` + ;; esac fi if [ -z "${DEVICE}" ]; then @@ -517,12 +516,12 @@ if [ -z "${DEVICE}" ]; then ogConfigureNetworking fi -[ -n "${DEVICE}" ] && [ -e /run/net-"${DEVICE}".conf ] && return 0 -#if [ -n "${DEVICE}" ] && [ -e /run/net-"${DEVICE}".conf ]; then -# echo "variable DEVICE con valor $DEVICE y fichero /run/net-$DEVICE encontrados" +[ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0 +#if [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ]; then +# echo "variable DEVICE con valor $DEVICE y fichero /tmp/net-$DEVICE encontrados" # return 0 #else -# echo "variable DEVICE con valor $DEVICE encontrada, procedemos a configurala y a crear el fichero /run/net-$DEVICE" +# echo "variable DEVICE con valor $DEVICE encontrada, procedemos a configurala y a crear el fichero /tmp/net-$DEVICE" #fi # Activamos la interfaz antes de configurar. @@ -543,10 +542,10 @@ for ROUNDTTT in 2 3 4 6 9 16 25 36 64 100; do # The NIC is to be configured if this file does not exist. # Ip-Config tries to create this file and when it succeds # creating the file, ipconfig is not run again. - if [ -e /run/net-"${DEVICE}".conf ]; then + if [ -e /tmp/net-"${DEVICE}".conf ]; then break; fi - case "$IP" in + case ${IP} in none|off) return 0 ;; @@ -579,17 +578,16 @@ done # source ipconfig output if [ -n "${DEVICE}" ]; then + . /tmp/net-${DEVICE}.conf + DEVICECFG="/tmp/net-${DEVICE}.conf" + export DEVICECFG export DEVICE - export DEVICECFG="/run/net-${DEVICE}.conf" - source $DEVICECFG echo "DEVICE=$DEVICE" >> $CFGINITRD echo "DEVICECFG=$DEVICECFG" >> $CFGINITRD - echo "exportando variable DEVICE con valor = $DEVICE y DEVICECFG con valor $DEVICECFG" - # Compatibilidad con versiones anteriores. - ln -fs $DEVICECFG /tmp + echo "exportando variable DEVICE con valor = $DEVICE y el DEVICECFG con valor $DEVICECFG" else - # source any interface as not exaclty specified - source /run/net-*.conf + # source any interface as not exaclty specified + . /tmp/net-*.conf fi } diff --git a/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh b/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh index 2a6f0fe2..738c5368 100755 --- a/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh +++ b/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh @@ -15,45 +15,28 @@ ln -s /bin/true /sbin/initctl #Limpiamos y actualizamos los repositorios apt apt-get clean apt-get update -apt-get upgrade -y #Desactivamos el hook del oginitrd.img para evitar problemas, al final de este escripts se activará mv /etc/initramfs-tools/hooks/oghooks /etc/initramfs-tools/ # Preparamos el mtab necesario para la instalacion correcta de paquetes. -echo "/dev/sda1 / ext4 rw,errors=remount-ro 0 0" > /etc/mtab +echo " /dev/sda1 / ext4 rw,errors=remount-ro 0 0 " > /etc/mtab #Instalamos el kernel. #Deteccion de la versión y kernel a usar -OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg} -[ -f $OGCLIENTCFG ] && source $OGCLIENTCFG -OSRELEASE=${OSRELEASE:-$(uname -a | awk '{print $3}')} -if [ -z "$OSARCH" ]; then - uname -a | grep x86_64 > /dev/null && OSARCH="amd64" || OSARCH="i386" -fi +export OSDISTRIB=$(lsb_release -i | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null +export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}') +export OSRELEASE=$(uname -a | awk '{print $3}') +uname -a | grep x86_64 > /dev/null && export OSARCH=amd64 || export OSARCH=i386 +export OSHTTP="http://es.archive.ubuntu.com/ubuntu/" # inicio de la instalacion -if [ "$OSRELEASE" == "3.7.3-030703-generic" ]; then - # Descargar e instalar Kernel 3.7. - mkdir -p /tmp/kernel - pushd /tmp/kernel - apt-get -y --force-yes install wget crda libnl-3-200 libnl-genl-3-200 wireless-regdb - wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.3-raring/linux-image-3.7.3-030703-generic_3.7.3-030703.201301171415_$OSARCH.deb - wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.3-raring/linux-image-extra-3.7.3-030703-generic_3.7.3-030703.201301171415_$OSARCH.deb - wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.3-raring/linux-headers-3.7.3-030703-generic_3.7.3-030703.201301171415_$OSARCH.deb - wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.3-raring/linux-headers-3.7.3-030703_3.7.3-030703.201301171415_all.deb - dpkg -i *.deb - popd - rm -fr /tmp/kernel -else - # Instalar Kernel del repositorio de paquetes. - apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} linux-image-$RELEASE -fi +apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} linux-image-$RELEASE #Eliminamos cualquier busybox previo: antes del busybox -#apt-get -y --force-yes remove busybox -#apt-get -y --force-yes remove busybox-static +apt-get -y --force-yes remove busybox +apt-get -y --force-yes remove busybox-static #estos paquetes ofrecen interaccion. # si es actualización, ya existe el fichero /etc/ssh/ssh_config @@ -97,7 +80,6 @@ echo " " > /etc/mtab #localepurge #rm /var/lib/dbus/machine-id; rm /sbin/initctl; dpkg-divert --rename --remove /sbin/initctl; #FIN ADV - apt-get clean apt-get autoclean apt-get autoremove diff --git a/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.Xwindow b/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.Xwindow index 35103d1b..68ea963d 100644 --- a/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.Xwindow +++ b/client/boot-tools/includes/usr/bin/boot-tools/listpackages/sw.Xwindow @@ -8,6 +8,4 @@ install roxterm install gparted #xvesa en compilacion install openbox -install midori -# VESA Kernel 3.7 -install v86d +install midori
\ No newline at end of file diff --git a/client/shared/bin/browser2 b/client/shared/bin/browser2 Binary files differnew file mode 100755 index 00000000..08b77dbd --- /dev/null +++ b/client/shared/bin/browser2 |