Last change
on this file since 1323 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
342 bytes
|
Rev | Line | |
---|
[821] | 1 | #include <string.h>
|
---|
| 2 |
|
---|
| 3 | extern int udhcpd_main(int argc, char *argv[]);
|
---|
| 4 | extern int udhcpc_main(int argc, char *argv[]);
|
---|
| 5 |
|
---|
| 6 | int main(int argc, char *argv[])
|
---|
| 7 | {
|
---|
| 8 | int ret = 0;
|
---|
| 9 | char *base = strrchr(argv[0], '/');
|
---|
| 10 |
|
---|
| 11 | if (strstr(base ? (base + 1) : argv[0], "dhcpd"))
|
---|
| 12 | ret = udhcpd_main(argc, argv);
|
---|
| 13 | else ret = udhcpc_main(argc, argv);
|
---|
| 14 |
|
---|
| 15 | return ret;
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.