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/shaper | |
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/shaper')
-rw-r--r-- | accel-pppd/shaper/limiter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c index 92e343b..5a3142b 100644 --- a/accel-pppd/shaper/limiter.c +++ b/accel-pppd/shaper/limiter.c @@ -488,7 +488,8 @@ int init_ifb(const char *name) .qdisc = qdisc_htb_root, }; - system("modprobe ifb"); + if (system("modprobe -q ifb")) + log_warn("failed to load ifb kernel module\n"); memset(&ifr, 0, sizeof(ifr)); strcpy(ifr.ifr_name, name); |