reversing a firmware of security camera and squashfs

I saw a cool video by ghidra ninja on yt that went over firmware reversing for an a small security camera. He got the firmware from the site of the manufacturer and went over binwalk and showed how there’s a linux filesystem on it in squashfs form. This was really amusing — the fact that there is a whole file system in a single binary. He then goes on to to see a rc script that runs on the device (this is after separating the filesystem and unsquashing it) and edits that code to include a reverse shell using nc. Some version of nc do not have the -e flag though and there’s a workaround for that in the man page of nc itself. I find that kind of ironic.