Add pap_username/password to pppd example if PAP Auth is enabled

This commit is contained in:
Alan Carvalho de Assis 2015-09-07 13:48:37 -06:00 committed by Gregory Nutt
parent e7ba97e2b5
commit aa17ae4c0a

View File

@ -87,6 +87,11 @@ int pppd_main(int argc, char *argv[])
.disconnect_script = &disconnect_script,
.connect_script = &connect_script,
.ttyname = "/dev/ttyS2",
#ifdef CONFIG_NETUTILS_PPPD_PAP
.pap_username = "username",
.pap_password = "password",
#endif
};
return pppd(&pppd_settings);
}