FreshJR
Very Senior Member
I have a file located in /jffs/ mounted ontop of a file in the routers read-only partition via this command.
Some approaches allow me to modify/overwrite this file. Other approaches do not.
For example:
I am always ABLE to overwrite "/jffs/scripts/MY_FILE.asp" with curl or pscp.
I cannot overwrite this file via the move "mv" command.
I cannot make changes to this file via sed.
The following two lines of code error out with "Device or resource busy"
--
I am trying to modify this file with sed. What can I do??
Code:
mount -o bind /jffs/scripts/MY_FILE.asp /www/READ_ONLY_FILE.asp
Some approaches allow me to modify/overwrite this file. Other approaches do not.
For example:
I am always ABLE to overwrite "/jffs/scripts/MY_FILE.asp" with curl or pscp.
I cannot overwrite this file via the move "mv" command.
I cannot make changes to this file via sed.
The following two lines of code error out with "Device or resource busy"
Code:
sed -i 's/ORIGINAL TEXT/NEW TEXT/' '/jffs/scripts/MY_FILE.asp'
mv '/jffs/scripts/MY_NEW_FILE.asp' '/jffs/scripts/MY_FILE.asp'
I am trying to modify this file with sed. What can I do??