2002-10-15 03:11:28 +05:30
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
extern int udhcpd_main(int argc, char *argv[]);
|
|
|
|
extern int udhcpc_main(int argc, char *argv[]);
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
char *base = strrchr(argv[0], '/');
|
2004-03-15 13:59:22 +05:30
|
|
|
|
2002-10-15 03:11:28 +05:30
|
|
|
if (strstr(base ? (base + 1) : argv[0], "dhcpd"))
|
|
|
|
ret = udhcpd_main(argc, argv);
|
|
|
|
else ret = udhcpc_main(argc, argv);
|
2004-03-15 13:59:22 +05:30
|
|
|
|
2002-10-15 03:11:28 +05:30
|
|
|
return ret;
|
|
|
|
}
|