:: Re: [DNG] simple-netaid-gtk -- vers…
Top Page
Delete this message
Reply to this message
Author: aitor
Date:  
To: dng
Subject: Re: [DNG] simple-netaid-gtk -- versions? dhcp? unbound?
Hi,

On 30/4/24 2:12, aitor wrote:

> $ ubus call ering.netaid ifup '{ "ifname": "eth0"}'
>
> The variable "tty" is optional. I use it to redirect the output to the vte terminal of the GUI.


Sorry, I rectify!

The variable is required, but I'm fixing this right now and making it optional via:


if (tb[IFUP_TTY] == NULL) {
    
     /* DON'T REDIRECT */
     (....)
}
else {


     /* REDIRECT */
     int tty = blobmsg_get_u32 (tb[IFUP_TTY]);
     (....)
}



in the policy.c of snetaid.

I'll update the snetaid packaging shortly.

Cheers,

Aitor.