mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
18 lines
367 B
C
18 lines
367 B
C
/* vi: set sw=4 ts=4: */
|
|
#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;
|
|
}
|