-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
0343c6b
1a5877c
749acc0
a3c6eb8
bbed58d
9f676c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I overlooked this, but indentation is standard 4 spaces (no tabs) in the crouton scripts so it should look like
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
--source "$MYIP"/255.255.255.0 \ | ||
--dport 1025:65535 -j ACCEPT | ||
fi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Max line length should be 80 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @divx118 method works for me, here's the output of each:
@divx118 -
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, i got it working @divx118. I was missing the space between the 2 " in the split($2,a," ").
i'll update the patch. thanks! |
||
|
||
exec sh -e "`dirname "\`readlink -f -- "$0"\`"`/enter-chroot" -t kodi "$@" "" \ | ||
exec croutonpowerd -i xinit /usr/bin/kodi --standalone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quote the output, and space out the awk commands. If it doesn't fit on one line, you can make the awk script span multiple lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My limited knowledge indicated 2 places that obviously needed spacing, did i miss anything else?
I think i added the quote properly...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that looks better.