Lines Matching refs:setup_script
1160 static int launch_script(const char *setup_script, const char *ifname, int fd);
1459 static int launch_script(const char *setup_script, const char *ifname, int fd) in launch_script() argument
1484 *parg++ = (char *)setup_script; in launch_script()
1487 execv(setup_script, args); in launch_script()
1499 fprintf(stderr, "%s: could not launch network script\n", setup_script); in launch_script()
1505 const char *setup_script, const char *down_script) in net_tap_init() argument
1519 if (!setup_script || !strcmp(setup_script, "no")) in net_tap_init()
1520 setup_script = ""; in net_tap_init()
1521 if (setup_script[0] != '\0') { in net_tap_init()
1522 if (launch_script(setup_script, ifname, fd)) in net_tap_init()
1528 ifname, setup_script, down_script); in net_tap_init()
2340 char setup_script[1024], down_script[1024]; in net_client_init()
2365 if (get_param_value(setup_script, sizeof(setup_script), "script", p) == 0) { in net_client_init()
2366 pstrcpy(setup_script, sizeof(setup_script), DEFAULT_NETWORK_SCRIPT); in net_client_init()
2371 ret = net_tap_init(vlan, device, name, ifname, setup_script, down_script); in net_client_init()