mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
minidlna: fixed so that minidlna config can contain network insted of interfaces
This commit is contained in:
parent
474299b1b3
commit
0bc14d9f56
1 changed files with 4 additions and 0 deletions
|
|
@ -43,9 +43,13 @@ minidlna_create_config() {
|
|||
local cfg=$1
|
||||
local port
|
||||
local interface
|
||||
local network
|
||||
|
||||
config_get port $cfg port
|
||||
config_get interface $cfg interface
|
||||
config_get network $cfg network
|
||||
|
||||
[ -n "$network" ] && . /lib/functions/network.sh && network_get_device interface $network
|
||||
|
||||
[ -z "$interface" -o -t "$port" ] && return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue