#1085502 inadyn: Wrong sed expression for iface detection in ip-up script

Package:
inadyn
Source:
inadyn
Description:
simple and small dynamic DNS client with HTTPS support
Submitter:
Alessandro Grassi
Date:
2024-10-20 08:21:02 UTC
Severity:
normal
#1085502#5
Date:
2024-10-20 08:18:01 UTC
From:
To:
Dear Maintainer,

It seems that the sed expression that determines the interface in the
ip-up script assumes that the configuration file specifies the interface
as "iface xxx0", while the correct syntax is "iface = xxx0".

This causes the ip-up script to basically never fire if the 'iface'
option is used.

The fix is simply to account for the = sign in the expression, such as:

sed -n
's/^[[:blank:]]*\(iface[[:blank:]]\+=[[:blank:]]\+[[:alnum:]]\+\)[[:blank:]]*$/\1/p'
/etc/inadyn.conf

Cheers!
Alessandro