aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 419e7d01..08978162 100644
--- a/interface.c
+++ b/interface.c
@@ -46,7 +46,7 @@ static char *netdevfmt;
void interface_init(void)
/* figure out which /roc/dev/net format to use */
{
- FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
+ FILE *fp = popen("uname -r", "r"); /* still wins if /proc is out */
/* pre-linux-2.2 format -- transmit packet count in 8th field */
netdevfmt = "%d %d %*d %*d %*d %d %*d %d %*d %*d %*d %*d %d";