mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
17 lines
344 B
C
17 lines
344 B
C
#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], '/');
|
|
|
|
if (strstr(base ? (base + 1) : argv[0], "dhcpd"))
|
|
ret = udhcpd_main(argc, argv);
|
|
else ret = udhcpc_main(argc, argv);
|
|
|
|
return ret;
|
|
}
|