This has nothing to do with networking, you are in the wrong forum here ...
Welcome into single user mode, I've been there for similar reasons as well ;-).
First, you need to mount your root file system read-write, like this:
mount / -o rw
Then you will be able to edit the file again. I hope your backup is not empty ...