Compliantest a nanostation loco m2 version americana

Moxland

New Member
tengo una nanostation loco m2 americana a la que he intentado desbloquearle el ct pero no he logrado nada.
#!/bin/sh
insmod ubnt_spectral
iwpriv wifi0 setCountry UB
ifconfig ath0 down
ifconfig wifi0 down
sleep 5
rmmod ubnt_spectral
ap_freq=$(cat /tmp/system.cfg | grep radio.1.freq | cut -d = -f 2)M
iwconfig ath0 freq $ap_freq
ifconfig ath0 up
ifconfig wifi0 up
echo "countrycode=511" > /var/etc/atheros.conf
sed -i 's/840/511/g' /tmp/system.cfg
echo "<option value="511">Compliance Test</option>" >> /var/etc/ccodes.inc

mkdir /etc/persistent/www
ln -s /usr/www/* /etc/persistent/www/
rm /etc/persistent/www/index.cgi
head -n 415 /usr/www/index.cgi >> /etc/persistent/www/index.cgi
echo "<div class=\"row\">" >> /etc/persistent/www/index.cgi
echo "<span class=\"label\"><? echo \"Modded By:\"; ></span>" >> /etc/persistent/www/index.cgi
echo "<span class=\"value\" style=\"color: red\"><? echo \"Social_Community\"; ></span>" >> /etc/persistent/www/index.cgi
echo "</div>" >> /etc/persistent/www/index.cgi
tail -n +416 /usr/www/index.cgi >> /etc/persistent/www/index.cgi
sed -i 's/\/usr\/www/\/etc\/persistent\/www/g' /var/etc/lighttpd.conf
/usr/etc/init.d/plugin stop httpd
/usr/etc/init.d/plugin start httpd

he probado con see script. y aparece la opcion ct en los paises pero con solo hacer un cambio en la configuracion y aplicarlo ya vuelve a united states y es como si el script quedara eliminado. la verdad no se si estoy haciendo algo mal o si hay otra manera
 
Atrás
Arriba