Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodi - Open ports to allow smb/samba browsing #3503

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions host-bin/startkodi
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ By default, it will log into the primary user on the first chroot found.

Options are directly passed to enter-chroot; run enter-chroot to list them."

# Forward ports needed to browse smb shares
MYIP="$(ip route get 1 | awk -F 'src ' '{ split($2,a," "); print a[1]; exit}')"

if [ -n "$MYIP" ]; then
iptables -I INPUT 1 -p udp \
--source "$MYIP"/255.255.255.0 \
--dport 1025:65535 -j ACCEPT
fi

exec sh -e "`dirname "\`readlink -f -- "$0"\`"`/enter-chroot" -t kodi "$@" "" \
exec croutonpowerd -i xinit /usr/bin/kodi --standalone