If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:setcountry

From BoxMatrix
(Redirected from setcountry)


BoxMatrix >> Shell-Commands >> setcountry @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

AVM-Command

Goto:   Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

setcountry changes the system Country setting, It is used by libcmapi.so / ctlmgr for the Webinterface and by all system
parts which can import configuration: firmwarecfg, libcfgimpexp.so, libmove_nw_d.so, tr069fwupdate and libtr069.so.

It expects a numerical country code which is explained in the Country (lexicon) article.

The script returns:

  • -1 - if wrong arguments are passed
  • -2 - if the firmware does not contain settings for the specified country code
  • 0 - on success - requires a reboot performed by the caller

Changing the Country setting requires a factory reset of the Telephony configuration and a reboot.
The empty Telephony configuration will be filled with Country specific defaults at boot time.

Old method

In older firmware this script is up to 1.2 kB and does not have a help function, but it would be:

Usage: setcountry <countrycode>

Simplified it does:

echo "country <countrycode>" > $CONFIG_ENVIRONMENT_PATH/environment

echo "clear_id $((0x80))" > /proc/tffs    # telefon_msns - unused in fritzos
echo "clear_id $((0x81))" > /proc/tffs    # fx_conf
echo "clear_id $((0x82))" > /proc/tffs    # fx_lcr
echo "clear_id $((0x83))" > /proc/tffs    # fx_moh
echo "clear_id $((0x84))" > /proc/tffs    # fx_cg
echo "clear_id $((0x85))" > /proc/tffs    # telefon_misc
New method

In newer firmware this script is up to 2.2 kB and works different - manually extended fw 7.57 help:

root@fritz2:/var/mod/root# setcountry

Usage: setcountry [--reset=[all|none|telcfg|voipcfg]] <countrycode>

Options:
       --reset=none      # append=''
       --reset=all       # append=',reset=setcountry'
       --reset=telcfg    # append=',reset=setcountry-telcfg'
       --reset=voipcfg   # append=',reset=setcountry-voipcfg'

Simplified it does:

echo "country <countrycode>" > $CONFIG_ENVIRONMENT_PATH/environment

echo "firmware_info <oldcontent><append>" > $CONFIG_ENVIRONMENT_PATH/environment

The last line is symbolic, <oldcontent> is the previous content of firmware_info, the real script uses sed for this purpose.
If <append> was not empty the factory reset of the Telephony is performed at next boot in the tffs / rc.tffs.sh startup scripts.

See also setlanguage.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-11-21 07:52 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-11-21 05:56 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 3.29 - 4.02 /usr/bin 1.2k - 1.4k
FRITZ!Box SL 3.48 /usr/bin 1.8k
FRITZ!Box 2031 4.15 /usr/bin 1.2k
FRITZ!Box 2070 3.87 - 4.15 /usr/bin 1.2k
FRITZ!Box 2110 4.52 /usr/bin 1.2k
FRITZ!Box 2170 4.31 - 4.57 /usr/bin 1.2k
FRITZ!Box SL WLAN 3.29 - 4.34 /usr/bin 1.2k - 1.4k
FRITZ!Box WLAN 3020 3.29 - 4.34 /usr/bin 1.2k - 1.4k
FRITZ!Box WLAN 3030 3.65 - 4.34 /usr/bin 1.2k
FRITZ!Box WLAN 3050 3.63 - 4.07 /usr/bin 1.2k
FRITZ!Box WLAN 3070 3.87 - 4.15 /usr/bin 1.2k
FRITZ!Box WLAN 3130 4.21 - 4.34 /usr/bin 1.2k
FRITZ!Box WLAN 3131 4.29 - 4.57 /usr/bin 1.2k
FRITZ!Box WLAN 3170 4.31 - 4.58 /usr/bin 1.2k
FRITZ!Box WLAN 3270 4.57 - 5.54 /usr/bin 1.1k - 1.7k
FRITZ!Box WLAN 3270 v3 4.77 - 5.54 /usr/bin 1.1k - 1.7k
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 /usr/bin 1.7k
FRITZ!Box 3272 (main) 5.50 - 6.89 /usr/bin 1.7k - 2.2k
FRITZ!Box WLAN 3370 (main) 5.01 - 6.56 /usr/bin 1.1k - 2.2k
FRITZ!Box 3390 (main) 5.50 - 6.56 /usr/bin 1.7k - 2.2k
FRITZ!Box 3490 (main) 6.20 - 7.30 /usr/bin 2.2k
FRITZ!Box 3490 (scrpn) 6.98 - 7.30 /usr/bin 2.2k
FRITZ!Box Fon ata 3.29 - 4.28 /usr/bin 1.2k - 1.8k
FRITZ!Box Fon ata 1020 3.29 - 4.28 /usr/bin 1.2k - 1.8k
FRITZ!Box 4020 /usr/bin 2.2k
FRITZ!Box 4040 6.52 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 4050 7.58 - 7.90 /usr/bin 1.9k
FRITZ!Box 4060 7.29 - 7.90 /usr/bin 1.2k - 2.2k
FRITZ!Box Fon 3.29 - 4.49 /usr/bin 1.2k - 1.8k
FRITZ!Box Fon 5010 3.88 - 4.43 /usr/bin 1.2k
FRITZ!Box Fon 5012 3.88 - 4.27 /usr/bin 1.2k
FRITZ!Box Fon 5050 3.29 - 4.31 /usr/bin 1.2k - 1.4k
FRITZ!Box Fon 5113 4.82 - 4.83 /usr/bin 1.1k
FRITZ!Box Fon 5124 4.47 - 4.77 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon 5140 4.25 - 4.67 /usr/bin 1.2k
VoIP Gateway 5188 4.28 - 4.81 /usr/bin 1013 - 1.2k
FRITZ!Box 5490 (main) 6.51 - 7.29 /usr/bin 2.2k
FRITZ!Box 5490 (scrpn) 6.98 - 7.29 /usr/bin 2.2k
FRITZ!Box 5491 (main) 7.01 - 7.29 /usr/bin 2.2k
FRITZ!Box 5491 (scrpn) 6.98 - 7.29 /usr/bin 2.2k
FRITZ!Box 5530 Fiber (boot) 7.21 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 5530 Fiber (main) 7.21 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 5590 Fiber (boot) 7.29 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 5590 Fiber (main) 7.29 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 5590 Fiber (prx) 7.29 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 5690 Pro (main) 7.62 - 7.90 /usr/bin 1.9k
FRITZ!Box 5690 Pro (rtl) 7.62 - 7.90 /usr/bin 1.9k
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /usr/bin 1.8k
FRITZ!Box 6320 Cable v2 6.21 /usr/bin 2.2k
FRITZ!Box 6340 Cable 5.24 /usr/bin 1.7k
FRITZ!Box 6360 Cable 4.85 - 6.51 /usr/bin 1.1k - 2.2k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /usr/bin 2.2k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /usr/bin 2.2k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 6490 Cable (atom) 6.20 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.57 /usr/bin 1.2k - 2.2k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 6591 Cable (arm) 7.04 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 6591 Cable (atom) 7.04 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 6660 Cable (arm) 7.14 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 6660 Cable (atom) 7.14 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 6670 Cable (arm) 7.61 - 7.90 /usr/bin 1.9k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 /usr/bin 1.9k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.90 /usr/bin 1.2k - 2.2k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 /usr/bin 1.2k - 2.2k
FRITZ!Box 6810 LTE 6.35 /usr/bin 1.7k - 2.2k
FRITZ!Box 6820 LTE v1 (main) 6.40 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 6820 LTE v2 (main) 6.40 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 6820 LTE v3 (main) 7.19 - 7.57 /usr/bin 1.2k - 2.2k
FRITZ!Box 6840 LTE (main) 5.08 - 6.88 /usr/bin 1.7k - 2.2k
FRITZ!Box 6842 LTE /usr/bin 1.7k - 2.2k
FRITZ!Box 6850 LTE 7.21 - 7.90 /usr/bin 1.2k - 2.2k
FRITZ!Box 6850 5G 7.24 - 7.90 /usr/bin 1.2k - 2.2k
FRITZ!Box 6890 LTE (main) 6.84 - 7.57 /usr/bin 1.2k - 2.2k
FRITZ!Box 6890 LTE v1 (main) 6.84 - 7.57 /usr/bin 1.2k - 2.2k
FRITZ!Box 6890 LTE v2 (main) 6.84 - 7.57 /usr/bin 1.2k - 2.2k
FRITZ!Box Fon WLAN 3.29 - 4.49 /usr/bin 1.2k - 1.8k
FRITZ!Box Fon WLAN 7050 3.29 - 4.50 /usr/bin 1.2k - 1.4k
FRITZ!Box Fon WLAN 7112 4.76 - 4.88 /usr/bin 1.1k
FRITZ!Box Fon WLAN 7113 4.40 - 4.86 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7113 DE 4.40 - 4.77 /usr/bin 1.2k
FRITZ!Box Fon WLAN 7113 INT 4.82 - 4.86 /usr/bin 1.1k
FRITZ!Box Fon WLAN 7140 4.02 - 4.77 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7141 4.14 - 4.77 /usr/bin 1.1k - 1.2k
FRITZ!Fon 7150 4.27 - 4.77 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7170 3.96 - 4.99 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7170 v1 3.96 - 4.99 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7170 v2 3.96 - 4.99 /usr/bin 1.1k - 1.2k
FRITZ!Box Fon WLAN 7240 4.65 - 6.06 /usr/bin 1.1k - 1.8k
FRITZ!Box Fon WLAN 7270 v1 4.44 - 4.99 /usr/bin 1013 - 1.2k
FRITZ!Box Fon WLAN 7270 v2 4.67 - 6.06 /usr/bin 1.1k - 1.8k
FRITZ!Box Fon WLAN 7270 v3 4.76 - 6.06 /usr/bin 1.1k - 1.8k
FRITZ!Box 7272 (main) 5.55 - 6.88 /usr/bin 1.7k - 2.2k
FRITZ!Box 7312 5.23 - 6.56 /usr/bin 1.7k - 2.2k
FRITZ!Box Fon WLAN 7320 4.85 - 6.35 /usr/bin 1.1k - 2.2k
FRITZ!Box 7330 5.06 - 6.56 /usr/bin 1.7k - 2.2k
FRITZ!Box 7330 SL 5.08 - 6.56 /usr/bin 1.7k - 2.2k
FRITZ!Box Fon WLAN 7340 4.83 - 5.05 /usr/bin 1.1k - 2.2k
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 /usr/bin 1.7k - 2.2k
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.36 /usr/bin 1.7k - 2.2k
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.88 /usr/bin 1.7k - 2.2k
FRITZ!Box 7362 SL (main) 5.53 - 7.18 /usr/bin 1.7k - 2.2k
FRITZ!Box 7369 (main) 6.30 - 6.32 /usr/bin 2.2k
FRITZ!Box Fon WLAN 7390 4.81 - 5.22 /usr/bin 1.1k - 2.2k
FRITZ!Box 7412 (main) 6.21 - 6.88 /usr/bin 2.2k
FRITZ!Box 7430 (main) 6.26 - 7.31 /usr/bin 2.2k
FRITZ!Box 7490 (main) 5.57 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 7490 (scrpn) 6.98 - 7.51 /usr/bin 1.2k - 2.2k
FRITZ!Box 7510 7.30 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7520 6.98 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7520 v2 (main) 7.30 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7530 6.98 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7530 AX 7.20 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7560 (main) 6.51 - 7.30 /usr/bin 2.2k
FRITZ!Box Fon WLAN 7570 vDSL 4.70 - 4.94 /usr/bin 1.1k
FRITZ!Box 7580 (main) 6.53 - 7.30 /usr/bin 2.2k
FRITZ!Box 7581 6.54 - 7.18 /usr/bin 2.2k
FRITZ!Box 7582 6.83 - 7.18 /usr/bin 2.2k
FRITZ!Box 7583 (main) 7.01 - 7.59 /usr/bin 1.2k - 2.2k
FRITZ!Box 7583 VDSL (main) 7.19 - 8.00 /usr/bin 1.9k - 2.2k
FRITZ!Box 7590 (main) 6.83 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7590 AX (main) 7.19 - 8.00 /usr/bin 1.2k - 2.2k
FRITZ!Box 7690 7.61 - 7.90 /usr/bin 1.9k
FRITZ!Smart Gateway 7.52 - 7.63 /usr/bin 1.2k - 1.9k
FRITZ!WLAN Repeater N/G 4.65 - 4.88 /usr/bin 1.1k
FRITZ!WLAN Repeater 300E 5.01 - 6.34 /usr/bin 1.1k - 2.2k
FRITZ!WLAN Repeater 310 A 5.24 - 7.16 /usr/bin 1.7k - 2.2k
FRITZ!WLAN Repeater 310 B 6.30 - 7.16 /usr/bin 2.2k
FRITZ!WLAN Repeater 450E 6.00 - 7.15 /usr/bin 1.8k - 2.2k
FRITZ!Repeater 600 7.11 - 7.58 /usr/bin 1.9k - 2.2k
FRITZ!Repeater 600 v2 7.27 - 7.58 /usr/bin 1.9k - 2.2k
FRITZ!WLAN Repeater 1160 6.51 - 7.15 /usr/bin 2.2k
FRITZ!Repeater 1200 7.11 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!Repeater 1200 AX 7.30 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!WLAN Repeater 1750E 6.12 - 7.32 /usr/bin 2.2k
FRITZ!Repeater 2400 7.12 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!Repeater 3000 6.98 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!Repeater 3000 AX 7.41 - 7.58 /usr/bin 1.2k - 1.9k
FRITZ!Repeater 6000 7.19 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!WLAN Repeater DVB-C 6.12 - 7.04 /usr/bin 2.2k
FRITZ!Powerline 540E 5.58 - 7.15 /usr/bin 1.8k - 2.2k
FRITZ!Powerline 546E 5.50 - 7.15 /usr/bin 1.7k - 2.2k
FRITZ!Powerline 1240 AX 7.57 - 7.58 /usr/bin 1.9k
FRITZ!Powerline 1240E 6.33 - 7.16 /usr/bin 2.2k
FRITZ!Powerline 1260E 6.90 - 7.58 /usr/bin 1.2k - 2.2k
FRITZ!Powerline 1260 7.27 - 7.58 /usr/bin 1.2k - 2.2k
congstar DSL-Box 4.25 - 4.81 /usr/bin 1.1k - 1.2k
congstar komplett Box 4.68 - 4.81 /usr/bin 1.1k
Speedport W 501V 3.93 - 4.38 /usr/bin 1.2k
Speedport W 503V 4.68 - 4.81 /usr/bin 1.1k
Speedport W 503V MK 4.79 /usr/bin 1.1k
Speedport W 504V MK 5.04 /usr/bin 1.7k
Speedport W 701V 4.25 - 4.81 /usr/bin 1.1k - 1.2k
Speedport W 721V 4.74 - 4.75 /usr/bin 1.1k
Speedport W 722V 4.76 - 4.79 /usr/bin 1.1k
Speedport W 900V 4.21 - 4.57 /usr/bin 1.2k
Speedport W 920V 4.78 - 4.79 /usr/bin 1.1k
Speedport W 101 Bridge 4.68 /usr/bin 1.1k
Eumex 300 IP 3.29 - 4.44 /usr/bin 1.2k - 1.4k
Alice IAD 5130 4.65 - 4.71 /usr/bin 1.2k
Alice IAD WLAN 3331 4.90 /usr/bin 1.1k
Alice IAD 7570 vDSL 4.86 - 5.09 /usr/bin 1.1k
162 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-11-21 07:52 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.