Ubnt ct
Z KHnetWiki
(Rozdíly mezi verzemi)
(→Ubiquiti AirMax) |
|||
Řádka 5: | Řádka 5: | ||
Jak to vrátit? | Jak to vrátit? | ||
- | echo "radartool cactime 1000" > /etc/persistent/rc.poststart | + | echo "/usr/sbin/radartool cactime 1000" > /etc/persistent/rc.poststart |
+ | echo "/usr/sbin/radartool -i wifi0 usecac 0" >> /etc/persistent/rc.poststart | ||
echo "echo '<option value=\"511\">===Compliance Test===</option>\n' >> /etc/ccodes.inc" >> /etc/persistent/rc.poststart | echo "echo '<option value=\"511\">===Compliance Test===</option>\n' >> /etc/ccodes.inc" >> /etc/persistent/rc.poststart | ||
<!-- echo "echo '<option value=\"511\">===Compliance Test===</option>\n<option value=\"203\">Czech</option>\n<option value=\"533\">Aruba</option>' >> /etc/ccodes.inc" >> /etc/persistent/rc.poststart--> | <!-- echo "echo '<option value=\"511\">===Compliance Test===</option>\n<option value=\"203\">Czech</option>\n<option value=\"533\">Aruba</option>' >> /etc/ccodes.inc" >> /etc/persistent/rc.poststart--> |
Verze z 21. 9. 2014, 21:39
Ubiquiti AirMax
Pro firmware 5.5.8 - zmizela možnost nastavení Compliance Test
Jak to vrátit?
echo "/usr/sbin/radartool cactime 1000" > /etc/persistent/rc.poststart echo "/usr/sbin/radartool -i wifi0 usecac 0" >> /etc/persistent/rc.poststart echo "echo '<option value=\"511\">===Compliance Test===</option>\n' >> /etc/ccodes.inc" >> /etc/persistent/rc.poststart chmod +x /etc/persistent/rc.poststart cfgmtd -w -p /etc/ reboot
Ověřeno i pro 5.5.9, včetně NanoBeam (XW firmware). Ale chce to, aby při první konfiguraci tam již compliance test byl, pak to již takto změnit nejde. Zatím primitivní způsob změny již nakonfigurovaného (ostatní konfigurace zůstane, ale nemám vyzkoušeno úplně dokonale):
v souboru /var/tmp/system.cfg změnit countrycode na 511 (neumím sed, takže libovolným SCP, např FAR managerem nebo midnight commanderem). zapsat cfgmtd -w A pak tam vrazit opět ten script (jelikož předchozí příkaz zruší custom scripts).
Ve verzích 5.5.x už zjevně soubor ccodes.inc neexistuje. Tento script nastaví jen compliance test a nezůstane na výběr nic jiného. Což asi nevadí ničemu.
Ve starších verzích (5.3.3) je obsah tento:
<option value="32" selected>Argentina</option> <option value="51">Armenia</option> <option value="533">Aruba</option> <option value="36">Australia</option> <option value="40">Austria</option> <option value="31">Azerbaijan</option> <option value="48">Bahrain</option> <option value="52">Barbados</option> <option value="112">Belarus</option> <option value="56">Belgium</option> <option value="84">Belize</option> <option value="68">Bolivia</option> <option value="70">Bosnia and Herzegovina</option> <option value="76">Brazil</option> <option value="96">Brunei Darussalam</option> <option value="100">Bulgaria</option> <option value="116">Cambodia</option> <option value="124">Canada</option> <option value="152">Chile</option> <option value="156">China</option> <option value="170">Colombia</option> <option value="511">Compliance Test</option> <option value="188">Costa rica</option> <option value="191">Croatia</option> <option value="196">Cyprus</option> <option value="203">Czech republic</option> <option value="208">Denmark</option> <option value="214">Dominican Republic</option> <option value="218">Ecuador</option> <option value="818">Egypt</option> <option value="222">El Salvador</option> <option value="233">Estonia</option> <option value="246">Finland</option> <option value="250">France</option> <option value="268">Georgia</option> <option value="276">Germany</option> <option value="300">Greece</option> <option value="304">Greenland</option> <option value="308">Grenada</option> <option value="316">Guam</option> <option value="320">Guatemala</option> <option value="332">Haiti</option> <option value="340">Honduras</option> <option value="344">Hong Kong</option> <option value="348">Hungary</option> <option value="352">Iceland</option> <option value="356">India</option> <option value="360">Indonesia</option> <option value="364">Iran</option> <option value="372">Ireland</option> <option value="376">Israel</option> <option value="380">Italy</option> <option value="388">Jamaica</option> <option value="400">Jordan</option> <option value="404">Kenya</option> <option value="408">North Korea</option> <option value="410">Korea Republic</option> <option value="414">Kuwait</option> <option value="428">Latvia</option> <option value="422">Lebanon</option> <option value="438">Liechtenstein</option> <option value="440">Lithuania</option> <option value="442">Luxembourg</option> <option value="446">Macau</option> <option value="807">Macedonia</option> <option value="458">Malaysia</option> <option value="470">Malta</option> <option value="484">Mexico</option> <option value="492">Monaco</option> <option value="504">Morocco</option> <option value="524">Nepal</option> <option value="528">Netherlands</option> <option value="530">Netherlands Antilles</option> <option value="554">New Zealand</option> <option value="578">Norway</option> <option value="512">Oman</option> <option value="586">Pakistan</option> <option value="591">Panama</option> <option value="598">Papua New Guinea</option> <option value="604">Peru</option> <option value="608">Philippines</option> <option value="616">Poland</option> <option value="620">Portugal</option> <option value="630">Puerto Rico</option> <option value="634">Qatar</option> <option value="642">Romania</option> <option value="643">Russia</option> <option value="682">Saudi Arabia</option> <option value="891">Serbia And Montenegro</option> <option value="702">Singapore</option> <option value="703">Slovakia</option> <option value="705">Slovenia</option> <option value="710">South Africa</option> <option value="724">Spain</option> <option value="144">Sri Lanka</option> <option value="752">Sweden</option> <option value="756">Switzerland</option> <option value="158">Taiwan</option> <option value="764">Thailand</option> <option value="780">Trinidad And Tobago</option> <option value="788">Tunisia</option> <option value="792">Turkey</option> <option value="804">Ukraine</option> <option value="784">United Arab Emirates</option> <option value="826">United Kingdom</option> <option value="840">United States</option> <option value="858">Uruguay</option> <option value="860">Uzbekistan</option> <option value="862">Venezuela</option> <option value="704">Viet Nam</option>