Proyecto

General

Perfil

16 antoniojas
#!/bin/sh

20 antoniojas
RUTA=http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/entry/limitar-https/trunk/
16 antoniojas
FICHERO=deny_https

# Descarga el script para tratar el tráfico https en los IES
20 antoniojas
wget -q -O $FICHERO $RUTA/$FICHERO?format=raw
16 antoniojas
chmod +x $FICHERO
mv $FICHERO /etc/init.d/

#update-rc.d $FICHERO defaults (nivel 20)
22 antoniojas
update-rc.d -f $FICHERO remove 2>&1 /dev/null
18 antoniojas
update-rc.d $FICHERO start 99 2 3 4 5 . stop 99 0 1 6 .
16 antoniojas
20 antoniojas
# Descarga el fichero con webs iniciales a cortar
FICHERO=deny_https.all
22 antoniojas
wget -q -O $FICHERO $RUTA/$FICHERO?format=raw
cp $FICHERO > /etc/network/deny_https.ies
20 antoniojas
16 antoniojas
/etc/init.d/$FICHERO start