changeset 39:47a34fe75c57

Added option to run a script after opening the tun device
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 06 May 2013 23:01:37 +0200
parents d9f5caa13898
children ed9581189d6b
files src/common.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/common.c	Mon May 06 22:53:20 2013 +0200
+++ b/src/common.c	Mon May 06 23:01:37 2013 +0200
@@ -185,6 +185,7 @@
 		ioctl(ttfd, TUNSIFHEAD, &i);
 	}
 #endif
+	if (envval = getconf("TUN_UP_SCRIPT")) system(envval);
 	session->fd_dev = ttfd;
 	return ttfd;
 }