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:nvi

From BoxMatrix


BoxMatrix >> Shell-Commands >> nvi @ 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

nvi is the AVM wrapper to use the vi text editor on TFFS character devices.

On most models all TFFS-Configuration files in /var/flash are no real files but device nodes created with mknod.
They do not have a file size but list the major / minor arguments passed to mknod to create them:

root@fritz:/var/mod/root# ls -l /var/flash/ar7.cfg

crw-r--r--    1 root     root      240, 113 May  5 09:38 /var/flash/ar7.cfg

The c states its a charater device. The position normally listing the file size shows it has major 240 and minor 113.

These special files can only be handled by stream processing commands like cat, grep, sed and all other
commands which can read from stdin and output to stdout, thus support input and output redirection and pipes.

The size of these special files can only be found by reading its stream to the end. wc is a stream processor:

root@fritz:/var/mod/root# wc -c /var/flash/ar7.cfg

42598 /var/flash/ar7.cfg

root@fritz:/var/mod/root# wc -c < /var/flash/ar7.cfg

42598 /var/flash/ar7.cfg

The vi text editor is no stream processor, it needs to know the file size to allocate a buffer for it.
That's why AVM wrote the nvi wrapper script.

root@fritz:/var/mod/root# nvi

usage: nvi <config-filename>

Simplified it does:

cat <config-filename> > /var/nvi.tmp 
vi /var/nvi.tmp 
cat /var/nvi.tmp > <config-filename>

vi works on a temp file which is read and written back by the stream processor cat.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-05-17 08:01 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-05-17 05:20 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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.23 - 4.02 /usr/bin 163
FRITZ!Box 2031 4.15 /usr/bin 163
FRITZ!Box 2070 3.87 - 4.15 /usr/bin 163
FRITZ!Box 2110 4.52 /usr/bin 163
FRITZ!Box 2170 4.31 - 4.57 /usr/bin 163
FRITZ!Box SL WLAN 3.23 - 4.34 /usr/bin 163
FRITZ!Box WLAN 3020 3.23 - 4.34 /usr/bin 163
FRITZ!Box WLAN 3030 3.65 - 4.34 /usr/bin 163
FRITZ!Box WLAN 3050 3.63 - 4.07 /usr/bin 163
FRITZ!Box WLAN 3070 3.87 - 4.15 /usr/bin 163
FRITZ!Box WLAN 3130 4.21 - 4.34 /usr/bin 163
FRITZ!Box WLAN 3131 4.29 - 4.57 /usr/bin 163
FRITZ!Box WLAN 3170 4.31 - 4.58 /usr/bin 163
FRITZ!Box WLAN 3270 4.57 - 5.54 /usr/bin 163
FRITZ!Box WLAN 3270 v3 4.77 - 5.54 /usr/bin 163
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 /usr/bin 163
FRITZ!Box 3272 5.50 - 6.89 /usr/bin 163
FRITZ!Box WLAN 3370 5.01 - 6.56 /usr/bin 163
FRITZ!Box 3390 5.50 - 6.56 /usr/bin 163
FRITZ!Box 3490 (main) 6.20 - 7.30 /usr/bin 163
FRITZ!Box 3490 (scrpn) 6.98 - 7.30 /usr/bin 163
FRITZ!Box Fon ata 3.23 - 4.28 /usr/bin 163
FRITZ!Box Fon ata 1020 3.23 - 4.28 /usr/bin 163
FRITZ!Box 4020 7.39 /usr/bin 163
FRITZ!Box 4040 6.52 - 7.57 /usr/bin 163
FRITZ!Box 4050 7.57 /usr/bin 163
FRITZ!Box 4060 7.26 - 7.57 /usr/bin 163
FRITZ!Box Fon 1.123 - 4.49 /usr/bin 163
FRITZ!Box Fon 5010 3.88 - 4.43 /usr/bin 163
FRITZ!Box Fon 5012 3.88 - 4.27 /usr/bin 163
FRITZ!Box Fon 5050 3.23 - 4.31 /usr/bin 163
FRITZ!Box Fon 5113 4.82 - 4.83 /usr/bin 163
FRITZ!Box Fon 5124 4.47 - 4.77 /usr/bin 163
FRITZ!Box Fon 5140 4.25 - 4.67 /usr/bin 163
VoIP Gateway 5188 4.28 - 4.81 /usr/bin 163
FRITZ!Box 5490 (main) 6.51 - 7.29 /usr/bin 163
FRITZ!Box 5490 (scrpn) 6.98 - 7.29 /usr/bin 163
FRITZ!Box 5491 (main) 6.98 - 7.29 /usr/bin 163
FRITZ!Box 5491 (scrpn) 6.98 - 7.29 /usr/bin 163
FRITZ!Box 5530 Fiber (boot) 7.21 - 7.80 /usr/bin 163
FRITZ!Box 5530 Fiber (main) 7.21 - 7.80 /usr/bin 163
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.90 /usr/bin 163
FRITZ!Box 5590 Fiber (boot) 7.27 - 7.90 /usr/bin 163
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.90 /usr/bin 163
FRITZ!Box 5690 Pro (arm) 7.59 - 7.60 /usr/bin 163
FRITZ!Box 5690 Pro (rtl) 7.59 - 7.60 /usr/bin 163
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /usr/bin 163
FRITZ!Box 6320 Cable v2 6.21 /usr/bin 163
FRITZ!Box 6340 Cable 5.24 /usr/bin 163
FRITZ!Box 6360 Cable 4.85 - 6.51 /usr/bin 163
FRITZ!Box 6430 Cable (arm) 6.84 - 7.57 /usr/bin 163
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /usr/bin 163
FRITZ!Box 6490 Cable (arm) 6.20 - 7.57 /usr/bin 163
FRITZ!Box 6490 Cable (atom) 6.20 - 7.51 /usr/bin 163
FRITZ!Box 6590 Cable (arm) 6.83 - 7.57 /usr/bin 163
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /usr/bin 163
FRITZ!Box 6591 Cable (arm) 7.04 - 7.90 /usr/bin 163
FRITZ!Box 6591 Cable (atom) 7.04 - 7.90 /usr/bin 163
FRITZ!Box 6660 Cable (arm) 7.14 - 7.90 /usr/bin 163
FRITZ!Box 6660 Cable (atom) 7.14 - 7.90 /usr/bin 163
FRITZ!Box 6670 Cable (arm) 7.57 - 7.62 /usr/bin 163
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 /usr/bin 163
FRITZ!Box 6690 Cable (arm) 7.28 - 7.90 /usr/bin 163
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 /usr/bin 163
FRITZ!Box 6810 LTE 6.35 /usr/bin 163
FRITZ!Box 6820 LTE v1 6.40 - 7.51 /usr/bin 163
FRITZ!Box 6820 LTE v2 6.40 - 7.51 /usr/bin 163
FRITZ!Box 6820 LTE v3 7.19 - 7.57 /usr/bin 163
FRITZ!Box 6840 LTE 5.08 - 7.39 /usr/bin 163
FRITZ!Box 6842 LTE /usr/bin 163
FRITZ!Box 6850 LTE 7.21 - 7.90 /usr/bin 163
FRITZ!Box 6850 5G 7.24 - 7.90 /usr/bin 163
FRITZ!Box 6890 LTE 6.84 - 7.51 /usr/bin 163
FRITZ!Box 6890 LTE v1 6.84 - 7.51 /usr/bin 163
FRITZ!Box 6890 LTE v2 6.84 - 7.51 /usr/bin 163
FRITZ!Box Fon WLAN 3.14 - 4.49 /usr/bin 163
FRITZ!Box Fon WLAN 7050 3.29 - 4.50 /usr/bin 163
FRITZ!Box Fon WLAN 7112 4.76 - 4.88 /usr/bin 163
FRITZ!Box Fon WLAN 7113 4.40 - 4.86 /usr/bin 163
FRITZ!Box Fon WLAN 7113 DE 4.40 - 4.77 /usr/bin 163
FRITZ!Box Fon WLAN 7113 INT 4.82 - 4.86 /usr/bin 163
FRITZ!Box Fon WLAN 7140 4.02 - 4.77 /usr/bin 163
FRITZ!Box Fon WLAN 7141 4.14 - 4.77 /usr/bin 163
FRITZ!Fon 7150 4.27 - 4.77 /usr/bin 163
FRITZ!Box Fon WLAN 7170 3.96 - 4.99 /usr/bin 163
FRITZ!Box Fon WLAN 7170 v1 3.96 - 4.99 /usr/bin 163
FRITZ!Box Fon WLAN 7170 v2 3.96 - 4.99 /usr/bin 163
FRITZ!Box Fon WLAN 7240 4.65 - 6.06 /usr/bin 163
FRITZ!Box Fon WLAN 7270 v1 4.44 - 4.99 /usr/bin 163
FRITZ!Box Fon WLAN 7270 v2 4.67 - 6.06 /usr/bin 163
FRITZ!Box Fon WLAN 7270 v3 4.76 - 6.06 /usr/bin 163
FRITZ!Box 7272 5.55 - 7.39 /usr/bin 163
FRITZ!Box 7312 5.23 - 6.56 /usr/bin 163
FRITZ!Box Fon WLAN 7320 4.85 - 6.35 /usr/bin 163
FRITZ!Box 7330 5.06 - 6.56 /usr/bin 163
FRITZ!Box 7330 SL 5.08 - 6.56 /usr/bin 163
FRITZ!Box Fon WLAN 7340 4.83 - 5.05 /usr/bin 163
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 /usr/bin 163
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.36 /usr/bin 163
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.88 /usr/bin 163
FRITZ!Box 7362 SL 5.53 - 7.14 /usr/bin 163
FRITZ!Box 7369 6.30 - 6.32 /usr/bin 163
FRITZ!Box Fon WLAN 7390 4.81 - 5.22 /usr/bin 163
FRITZ!Box 7412 6.21 - 6.88 /usr/bin 163
FRITZ!Box 7430 6.26 - 7.39 /usr/bin 163
FRITZ!Box 7490 (main) 5.57 - 7.57 /usr/bin 163
FRITZ!Box 7490 (scrpn) 6.98 - 7.57 /usr/bin 163
FRITZ!Box 7510 7.30 - 7.57 /usr/bin 163
FRITZ!Box 7520 6.98 - 7.51 /usr/bin 163
FRITZ!Box 7520 v2 (arm) 7.30 - 7.57 /usr/bin 163
FRITZ!Box 7530 6.98 - 7.56 /usr/bin 163
FRITZ!Box 7530 AX 7.20 - 7.90 /usr/bin 163
FRITZ!Box 7560 6.51 - 7.39 /usr/bin 163
FRITZ!Box Fon WLAN 7570 vDSL 4.70 - 4.94 /usr/bin 163
FRITZ!Box 7580 6.53 - 7.30 /usr/bin 163
FRITZ!Box 7581 6.54 - 7.16 /usr/bin 163
FRITZ!Box 7582 6.83 - 7.17 /usr/bin 163
FRITZ!Box 7583 7.01 - 7.57 /usr/bin 163
FRITZ!Box 7583 VDSL 7.19 - 7.31 /usr/bin 163
FRITZ!Box 7590 6.83 - 7.90 /usr/bin 163
FRITZ!Box 7590 AX 7.19 - 7.90 /usr/bin 163
FRITZ!Box 7690 7.59 - 7.60 /usr/bin 163
FRITZ!Smart Gateway 7.39 - 7.59 /usr/bin 163
FRITZ!WLAN Repeater N/G 4.65 - 4.88 /usr/bin 163
FRITZ!WLAN Repeater 300E 5.01 - 6.34 /usr/bin 163
FRITZ!WLAN Repeater 310 A 5.24 - 7.16 /usr/bin 163
FRITZ!WLAN Repeater 310 B 6.30 - 7.16 /usr/bin 163
FRITZ!WLAN Repeater 450E 6.00 - 7.15 /usr/bin 163
FRITZ!Repeater 600 7.11 - 7.58 /usr/bin 163
FRITZ!Repeater 600 v2 7.19 - 7.58 /usr/bin 163
FRITZ!WLAN Repeater 1160 6.51 - 7.15 /usr/bin 163
FRITZ!Repeater 1200 7.11 - 7.58 /usr/bin 163
FRITZ!Repeater 1200 AX 7.27 - 7.57 /usr/bin 163
FRITZ!WLAN Repeater 1750E 6.12 - 7.39 /usr/bin 163
FRITZ!Repeater 2400 7.12 - 7.58 /usr/bin 163
FRITZ!Repeater 3000 6.98 - 7.58 /usr/bin 163
FRITZ!Repeater 3000 AX 7.39 - 7.57 /usr/bin 163
FRITZ!Repeater 6000 7.19 - 7.57 /usr/bin 163
FRITZ!WLAN Repeater DVB-C 6.12 - 7.03 /usr/bin 163
FRITZ!Powerline 540E 5.58 - 7.15 /usr/bin 163
FRITZ!Powerline 546E 5.50 - 7.15 /usr/bin 163
FRITZ!Powerline 1240 AX 7.51 - 7.57 /usr/bin 163
FRITZ!Powerline 1240E 6.33 - 7.16 /usr/bin 163
FRITZ!Powerline 1260E 6.90 - 7.57 /usr/bin 163
FRITZ!Powerline 1260 7.27 - 7.57 /usr/bin 163
congstar DSL-Box 4.25 - 4.81 /usr/bin 163
congstar komplett Box 4.68 - 4.81 /usr/bin 163
Speedport W 501V 3.93 - 4.38 /usr/bin 163
Speedport W 503V 4.68 - 4.81 /usr/bin 163
Speedport W 503V MK 4.79 /usr/bin 163
Speedport W 701V 4.25 - 4.81 /usr/bin 163
Speedport W 721V 4.74 - 4.75 /usr/bin 163
Speedport W 722V 4.76 - 4.79 /usr/bin 163
Speedport W 900V 4.21 - 4.57 /usr/bin 163
Speedport W 920V 4.78 - 4.79 /usr/bin 163
Speedport W 101 Bridge 4.68 /usr/bin 163
Eumex 300 IP 3.29 - 4.44 /usr/bin 163
Alice IAD 5130 4.65 - 4.71 /usr/bin 163
Alice IAD WLAN 3331 4.90 /usr/bin 163
Alice IAD 7570 vDSL 4.86 - 5.09 /usr/bin 163
160 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-05-17 08:01 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.