|
There are two components to the answer.
1. For each utility that will be implemented by busybox, a filesystem link from some standard directory such as /bin, /usr/bin, /sbin, etc, will point to the busybox binary.
2. Any application in Linux can look at its argv[0], and from that see what the parent process used to invoke the application. By doing this, busybox is able to know what the parent process was expecting, and is able to provide the accordant behavior.
There are other applications, such as bash which use the same procedure to provide an alter ego, of sorts.
--- rod.
|