2
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.
(1) I suppose
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.) – G-Man Says 'Reinstate Monica' – 2015-11-14T04:10:46.407there's ed but i don't know about ex or all the others. what i'm certain is that i don't know how to down/upload the file into/from my pc while telneting to the device within PuTTY. – Webodan – 2015-11-14T04:19:24.580
Telnet isn't secure... So what is secure mode? – Canadian Luke – 2015-11-14T05:58:41.373
Sorry for wording it badly, i was talking about Failsafe mode https://wiki.openwrt.org/doc/howto/generic.failsafe
– Webodan – 2015-11-14T12:01:44.323and I know telnet is not secure but I can't use any other thing since the device rejects any other protocol i've tried in PuTTY. – Webodan – 2015-11-14T12:10:55.730