I need to modify a text file inside a wifi audio receiver that runs OpenWRT, and i've reached the file i need in /etc/config/audio , and i have editing rights (i'm rebooting the device in secure mode so i'm root), but the darn thing doesn't have a text editor, of all things! i've tried vi, vim, emacs, joe, nano, but doesn't seem to have any. it does have echo, cat, grep and a few more but none are text editors.
I'm logging into it with PuTTY, and any other connection besides Telnet is refused. I hope somebody can help me.
sed
andawk
are unlikely to be there, but have you checked fored
andex
? (2) Can you download the file, edit it on your computer, and then upload it? (If so, I suggest that you upload it with a different name,diff
them to make sure nothing went wrong, and then either rename (mv
) or copy (cp
) the new file over the old file.)