diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-02 00:37:56 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-02 00:37:56 +0000 |
commit | 6a1cbf68b7cbb6967f218a2cf65345518b49706a (patch) | |
tree | 8225653fc4e3a4ed3a3da53215e844b23e3ee867 /vl.c | |
parent | c4e27dd441d0271d448043d0c326b995b1f3ed17 (diff) |
script=no for the TUN/TAP net option, by Jean-Christian de Rivaz
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2376 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3289,7 +3289,7 @@ static int net_tap_init(VLANState *vlan, const char *ifname1, if (fd < 0) return -1; - if (!setup_script) + if (!setup_script || !strcmp(setup_script, "no")) setup_script = ""; if (setup_script[0] != '\0') { /* try to launch network init script */ @@ -6066,6 +6066,7 @@ void help(void) "-net tap[,vlan=n][,fd=h][,ifname=name][,script=file]\n" " connect the host TAP network interface to VLAN 'n' and use\n" " the network script 'file' (default=%s);\n" + " use 'script=no' to disable script execution;\n" " use 'fd=h' to connect to an already opened TAP interface\n" #endif "-net socket[,vlan=n][,fd=h][,listen=[host]:port][,connect=host:port]\n" |