diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-16 00:02:43 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-16 00:02:43 +0400 |
commit | 4fb9e3f03506695023d6aac0106b7f541b820c80 (patch) | |
tree | 307d8e8fe35612c8794484d23f68b76bf5a4df84 /accel-pppd/ctrl/pptp | |
parent | d669038e70d2e3690423792e63b8179e44a7a340 (diff) | |
download | accel-ppp-4fb9e3f03506695023d6aac0106b7f541b820c80.tar.gz accel-ppp-4fb9e3f03506695023d6aac0106b7f541b820c80.zip |
write message to log if unable to load necessary kernel module
Diffstat (limited to 'accel-pppd/ctrl/pptp')
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 456b85a4..2f0c5efd 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -762,7 +762,8 @@ static void pptp_init(void) struct sockaddr_in addr; char *opt; - system("modprobe pptp"); + if (system("modprobe -q pptp")) + log_warn("failed to load pptp kernel module\n"); serv.hnd.fd = socket(PF_INET, SOCK_STREAM, 0); if (serv.hnd.fd < 0) { |