diff --git a/src/script.c b/src/script.c index ceb6a1b4..1ce59ea0 100644 --- a/src/script.c +++ b/src/script.c @@ -105,6 +105,8 @@ void environment_init(environment_t *env) { environment_add(env, "DEVICE=%s", device); if(iface) environment_add(env, "INTERFACE=%s", iface); + if(debug_level >= 0) + environment_add(env, "DEBUG=%d", debug_level); } void environment_exit(environment_t *env) {