# HG changeset patch # User Ivo Smits # Date 1367874097 -7200 # Node ID 47a34fe75c57824d5f436761c79ac3d72be768ab # Parent d9f5caa13898628c45ef8529f051802515215336 Added option to run a script after opening the tun device diff -r d9f5caa13898 -r 47a34fe75c57 src/common.c --- 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; }