Martineau
Part of the Furniture
Ahh of course, the presence of 'nanorc' makes you the other one who uses nano exclusively to edit files on the router!Obviously there's lots of alternatives for desktop OS's, notepad++ plugins to full IDEs. Having shellcheck on the router itself could help stop silly mistakes while making quick and dirty edits though ssh.
(Bad) Habit?How doesdiffer fromCode:$(Smart_LineInsert "$FN" "$(echo -e "sh /jffs/addons/unbound/unbound.postconf \"\$1\"\t\t# unbound_manager")" )
Code:Smart_LineInsert "$FN" "$(echo -e "sh /jffs/addons/unbound/unbound.postconf \"\$1\"\t\t# unbound_manager")"
Originally the function would return a text string, so
Code:
RC="$(Smart_LineInsert "$FN" "$(echo -e "sh /jffs/addons/unbound/unbound.postconf \"\$1\"\t\t# unbound_manager")" )"
Code:
RC=Smart_LineInsert "$FN" "$(echo -e "sh /jffs/addons/unbound/unbound.postconf \"\$1\"\t\t# unbound_manager")"