Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
6f3d90c9
Commit
6f3d90c9
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
avahi service for dlna
parent
f7917414
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-dlna
+20
-0
20 additions, 0 deletions
src/freedombone-app-dlna
with
20 additions
and
0 deletions
src/freedombone-app-dlna
+
20
−
0
View file @
6f3d90c9
...
...
@@ -94,6 +94,23 @@ function configure_firewall_for_dlna {
firewall_add DLNA 1900 udp
firewall_add DLNA 8200 tcp
echo
'<?xml version="1.0" standalone="no"?><!--*-nxml-*-->'
>
/etc/avahi/services/dlna.service
echo
'<!DOCTYPE service-group SYSTEM "avahi-service.dtd">'
>>
/etc/avahi/services/dlna.service
echo
'<service-group>'
>>
/etc/avahi/services/dlna.service
echo
' <name replace-wildcards="yes">%h DLNA</name>'
>>
/etc/avahi/services/dlna.service
echo
' <service>'
>>
/etc/avahi/services/dlna.service
echo
' <type>_dlna._tcp</type>'
>>
/etc/avahi/services/dlna.service
echo
" <port>8200</port>"
>>
/etc/avahi/services/dlna.service
echo
' </service>'
>>
/etc/avahi/services/dlna.service
echo
' <service>'
>>
/etc/avahi/services/dlna.service
echo
' <type>_dlna._udp</type>'
>>
/etc/avahi/services/dlna.service
echo
" <port>1900</port>"
>>
/etc/avahi/services/dlna.service
echo
' </service>'
>>
/etc/avahi/services/dlna.service
echo
'</service-group>'
>>
/etc/avahi/services/dlna.service
systemctl restart avahi-daemon
mark_completed
$FUNCNAME
}
...
...
@@ -167,6 +184,9 @@ function remove_dlna {
remove_completion_param install_dlna
firewall_remove 1900 udp
firewall_remove 8200 tcp
rm
/etc/avahi/services/dlna.service
systemctl restart avahi-daemon
}
function
install_dlna_main
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment