|
@@ -199,9 +199,13 @@ function install_dlna_main {
|
199
|
199
|
fi
|
200
|
200
|
sed -i 's/#root_container=./root_container=B/g' /etc/minidlna.conf
|
201
|
201
|
if [[ $SYSTEM_TYPE != "mesh"* ]]; then
|
202
|
|
- sed -i 's/#network_interface=/network_interface=eth0/g' /etc/minidlna.conf
|
|
202
|
+ if [[ $(config_param_exists WIFI_INTERFACE) == "0" ]]; then
|
|
203
|
+ sed -i 's/#network_interface=/network_interface=eth0/g' /etc/minidlna.conf
|
|
204
|
+ else
|
|
205
|
+ sed -i "s/#network_interface=/network_interface=$WIFI_INTERFACE/g" /etc/minidlna.conf
|
|
206
|
+ fi
|
203
|
207
|
else
|
204
|
|
- sed -i 's/#network_interface=/network_interface=$WIFI_INTERFACE/g' /etc/minidlna.conf
|
|
208
|
+ sed -i "s/#network_interface=/network_interface=$WIFI_INTERFACE/g" /etc/minidlna.conf
|
205
|
209
|
fi
|
206
|
210
|
sed -i "s/#friendly_name=/friendly_name=\"${PROJECT_NAME} Media\"/g" /etc/minidlna.conf
|
207
|
211
|
sed -i 's|#db_dir=/var/cache/minidlna|db_dir=/var/cache/minidlna|g' /etc/minidlna.conf
|