Revisión 270
Añadido por jredrejo hace más de 13 años
wifi-ltsp/trunk/configura_hostapd.py | ||
---|---|---|
format='%(asctime)s %(levelname)-8s %(message)s',
|
||
datefmt='%a, %d %b %Y %H:%M:%S',
|
||
filename=LOG_FILENAME)
|
||
|
||
dia_hoy=""
|
||
hora=""
|
||
user=""
|
||
fich=""
|
||
hos=""
|
||
res=""
|
||
f=""
|
||
|
||
if len(sys.argv)>1:
|
||
dia_hoy=""
|
||
hora=""
|
||
user=""
|
||
fich=""
|
||
hos=""
|
||
res=""
|
||
f=""
|
||
|
||
dia_hoy=dia_actual()
|
||
hora=hora_actual(dia_hoy)
|
||
fich=fichero_semana(dia_hoy)
|
||
f=descargar_fichero(fich)
|
||
if f!="":
|
||
user=devuelve_usuario()
|
||
if userIsTeacher(user):
|
||
hos=crea_hostapd(f,user,hora)
|
||
else: #login de un alumno
|
||
subprocess.Popen(["invoke-rc.d","hostapd","stop"]).wait()
|
||
sys.exit(0)
|
||
|
||
if hos=="":
|
||
logging.getLogger().error("Error al generar las mac autorizadas")
|
||
dia_hoy=dia_actual()
|
||
hora=hora_actual(dia_hoy)
|
||
fich=fichero_semana(dia_hoy)
|
||
f=descargar_fichero(fich)
|
||
if f!="":
|
||
user=devuelve_usuario()
|
||
if userIsTeacher(user):
|
||
hos=crea_hostapd(f,user,hora)
|
||
else: #login de un alumno
|
||
subprocess.Popen(["invoke-rc.d","hostapd","stop"]).wait()
|
||
sys.exit(0)
|
||
|
||
if hos=="":
|
||
logging.getLogger().error("Error al generar las mac autorizadas")
|
||
|
||
|
||
#Aquí metemos ahora la reconfiguración de hostapd.conf con la parte
|
wifi-ltsp/trunk/debian/changelog | ||
---|---|---|
wifi-ltsp (0.5-1) unstable; urgency=low
|
||
|
||
* Nueva versión para ordenadores con Debian Squeeze
|
||
* Si no se le pasa parámetro a configura_hostapd.py no crea las macs
|
||
|
||
-- José L. Redrejo Rodríguez <jredrejo@debian.org> Thu, 24 Nov 2011 12:47:54 +0100
|
||
|
||
wifi-ltsp (0.4-1) unstable; urgency=low
|
||
|
||
* Autoriza wifi para guardias
|
wifi-ltsp/trunk/debian/rules | ||
---|---|---|
dh_testroot
|
||
dh_clean -k
|
||
dh_installdirs
|
||
python setup.py install --prefix=/usr --root=$(CURDIR)/debian/wifi-ltsp
|
||
python setup.py install --prefix=/usr --install-layout=deb --root=$(CURDIR)/debian/wifi-ltsp
|
||
|
||
|
||
# Build architecture-independent files here.
|
||
binary-indep: build install
|
||
dh_pysupport
|
||
dh_testdir
|
||
dh_testroot
|
||
dh_installchangelogs
|
||
dh_installdocs
|
||
dh_installman
|
||
dh_install
|
||
dh_python2
|
||
dh_compress
|
||
dh_fixperms
|
||
dh_installdeb
|
Exportar a: Unified diff
versión para ordenadores con Squeeze