<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div>Hola a todos.<br><br></div>Resulta que acabo de crear mi imágen
personalizada para la XO 4.0, sin embargo poseo problemas al forzar a
las XO a que utilicen los DNS de OpenDNS, antes en la 1.75 utilizaba el
siguiente script.<br><br><p style="font-family:arial,sans-serif;font-size:12.8px"><i>#!/bin/sh</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>set -e</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>cat > "$INSTALL_ROOT/etc/NetworkManager/dispatcher.d/000-override-nameserver" <<'EOF'</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>{#!/bin/sh</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i># Copyright (C) 2010 One Laptop Per Child Association, Inc.</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i># Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i># Written by Martin Langhoff <<a href="mailto:martin@laptop.org" target="_blank">martin@laptop.org</a>></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i># REPLACE with the base domain for your servers</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>basedomain="xs\.base\.domain\.tld"</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i># REPLACE with IP addresses of your DNS servers</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>PRIMARYDNS="208.67.222.123"</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>SECONDARYDNS="208.67.220.123" </i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>if="$1"</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>updown="$2"</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>if [ "$updown" = "up" ]; then</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> # </i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> # no confundirse con iparatodos como ISP</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> if ! grep -q "^search [0-9]*\.$basedomain" /etc/resolv.conf; then</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> # reemplazar resolv.conf</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> echo "# Overwritten by 000-override-nameserver" > /etc/resolv.conf</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> echo nameserver $PRIMARYDNS >> /etc/resolv.conf</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> echo nameserver $SECONDARYDNS >> /etc/resolv.conf </i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i> fi</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>fi</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i><br></i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>EOF</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>chmod 755 "$INSTALL_ROOT/etc/NetworkManager/dispatcher.d/000-override-nameserver"</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><br></p><p style="font-family:arial,sans-serif;font-size:12.8px">El cual llamo en el os-builder de la siguiente manera.</p><p style="font-family:arial,sans-serif;font-size:12.8px"></p><p style="font-family:arial,sans-serif;font-size:12.8px"><i>[custom_scripts]<br>custom_script_1=/home/olpc/imagen-personalizada/install-000-override-nameserver</i></p><p style="font-family:arial,sans-serif;font-size:12.8px"><br></p><p style="font-family:arial,sans-serif;font-size:12.8px">Sin embargo y aunque el script aparece en la ruta indicada (/etc/NetworkManager/dispatcher.d/000-override-nameserver) no obliga a las XO a usar los DNS de OpenDNS, sino que usa los que le arroje la red LAN.</p><p style="font-family:arial,sans-serif;font-size:12.8px"><br></p><p style="font-family:arial,sans-serif;font-size:12.8px">Quisiera saber si alguien ha tenido una experiencia similar y me puede ayudar con esto.</p><p style="font-family:arial,sans-serif;font-size:12.8px"><br></p><p style="font-family:arial,sans-serif;font-size:12.8px">Feliz tarde y gracias de antemano.</p></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><p style="font-size:medium"><font face="Verdana, Geneva, sans-serif" color="#c8ae8a" style="font-size:12px"><a href="http://es.fundaorth.org" target="_blank"><img src="http://www.fundaorth.org/firmas/alejandro-calderon.png" alt=""></a><br></font></p></div><div><div dir="ltr"><div><div dir="ltr"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>