<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1165451&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / script pour sfrbox [RÉSOLU]]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1165451</link>
		<description><![CDATA[Les sujets les plus récents dans script pour sfrbox [RÉSOLU].]]></description>
		<lastBuildDate>Sun, 13 Jan 2013 16:53:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  script pour sfrbox [RÉSOLU]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193711#p12193711</link>
			<description><![CDATA[<p>merci pge, c&#039;est exactement ce qu&#039;il fallait pour la sfr box</p><p>mes parametres dans le post data étaient incorrects.</p><p>sujet résolu <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Sciensous)]]></author>
			<pubDate>Sun, 13 Jan 2013 16:53:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12193711#p12193711</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script pour sfrbox [RÉSOLU]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12191621#p12191621</link>
			<description><![CDATA[<p>Bonjour,<br />Ce petit script fonctionne avec une Neufbox NB4. Il fonctionne en &quot;interrupteur ON/OFF&quot; avec une boite de dialogue Zenity depuis un lanceur ...<br />A adapter selon tes besoins ... en ajustant à la configuration de ta box dans les paramètres wget.</p><div class="codebox"><pre><code>#!/bin/bash

login=XXXXX
passwd=XXXXX
# ATTENTION : configurer les paramètres ligne 17 en utilisant ceux pris en compte dans votre box.

etat=$(wget --quiet http://192.168.1.1/wifi/config -O /tmp/etat_wifi &amp;&amp; cat /tmp/etat_wifi | grep &quot;id=\&quot;ap_active_on\&quot; checked=\&quot;checked\&quot;&quot;)
if [[ $etat = &quot;&quot; ]]; then
	etat2=&quot;on&quot;
	zenity --question --title=&quot;ACTIVATION WIFI&quot; --text &quot;Le wifi est désactivé\n Voulez-vous l&#039;activer ?&quot;;
else
	etat2=&quot;off&quot;
	zenity --question  --title=&quot;DÉSACTIVATION WIFI&quot; --text &quot;Le wifi est activé\n Voulez-vous le désactiver ?&quot;;
fi

if [ $? = &quot;0&quot; ]; then
	wget http://192.168.1.1/login http://192.168.1.1/wifi/config --post-data=&quot;method=passwd&amp;login=$login&amp;password=$passwd&amp;ap_active=$etat2&amp;ap_ssid=NEUF_6B98&amp;ap_closed=0&amp;ap_channel=11&amp;ap_mode=auto&quot; -O nul      
else
	exit
fi

rm /tmp/etat_wifi    
exit</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pge)]]></author>
			<pubDate>Sun, 13 Jan 2013 14:27:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12191621#p12191621</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script pour sfrbox [RÉSOLU]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12186631#p12186631</link>
			<description><![CDATA[<p>je ne cherche pas à telecharger des fichiers, mais à remplir un &quot;formulaire&quot; en ligne de commande !</p>]]></description>
			<author><![CDATA[dummy@example.com (Sciensous)]]></author>
			<pubDate>Sat, 12 Jan 2013 23:40:27 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12186631#p12186631</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  script pour sfrbox [RÉSOLU]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12184541#p12184541</link>
			<description><![CDATA[<p>Bonjour,</p><p>personnellement pour récupérer des logs chez ovh, je fais :</p><div class="codebox"><pre><code>wget -r  -nd --no-parent -A .gz --no-check-certificate --http-user=xxxxxx --http-password=xxxxxxxx https://logs.ovh.net/</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (sechanbask)]]></author>
			<pubDate>Sat, 12 Jan 2013 20:15:41 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12184541#p12184541</guid>
		</item>
		<item>
			<title><![CDATA[script pour sfrbox [RÉSOLU]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12180721#p12180721</link>
			<description><![CDATA[<p>Bonjour,</p><p>je cherche à faire un script pour <br />- me connecter à la box (192.168.1.1)<br />- activer / ou désactiver le wifi (<a href="http://192.168.1.1/login?page_ref=/wifi">http://192.168.1.1/login?page_ref=/wifi</a>)</p><p>là 2 possibilités: j&#039;appuye sur le bouton (box à côté donc) ou je rentre ID de l&#039;admin + MDP (sur un pc relié à la box, mais loin...)</p><p>je voudrai faire un script qui fasse la 2eme possibilité: je n&#039;ai plus à rentrer l&#039;ID et le MDP.</p><p>Soit quelqu&#039;un l&#039;a deja fait et je le remercie pour me donner les parametres à donner à wget<br />Soit quelqu&#039;un m&#039;explique comment récupérer les &quot;parametres&quot; envoyés à la box (contenant le --post-data si j&#039;ai bien compris)</p><p>Merci d&#039;avance pour votre aide pour une question pas compliquée pour un connaisseur mais encore trop opaque pour le neophyte que je suis...<br /><img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Sciensous)]]></author>
			<pubDate>Sat, 12 Jan 2013 14:42:24 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12180721#p12180721</guid>
		</item>
	</channel>
</rss>
