kodi - Adapt to new debian and kodi version
This commit is contained in:
27
seqs/kodi.sh
27
seqs/kodi.sh
@@ -12,7 +12,7 @@ toolProfileDir="/home/kodi/.kodi"
|
|||||||
step_1_info() { echo "Install $toolName via apt"; }
|
step_1_info() { echo "Install $toolName via apt"; }
|
||||||
step_1_alias() { echo "install"; }
|
step_1_alias() { echo "install"; }
|
||||||
step_1() {
|
step_1() {
|
||||||
exe apt update && apt install kodi
|
exe apt update && apt install kodi kodi-inputstream-adaptive kodi-eventclients-kodi-send
|
||||||
}
|
}
|
||||||
|
|
||||||
step_2_info() { echo "Set localisation and keyboard layout"; }
|
step_2_info() { echo "Set localisation and keyboard layout"; }
|
||||||
@@ -75,7 +75,8 @@ User = ${toolUser}
|
|||||||
Group = ${toolUser}
|
Group = ${toolUser}
|
||||||
Type = simple
|
Type = simple
|
||||||
ExecStart = /usr/bin/kodi-standalone
|
ExecStart = /usr/bin/kodi-standalone
|
||||||
ExecStop = /usr/bin/pkill kodi
|
ExecStop = /usr/bin/kodi-send --action=\"Quit\"
|
||||||
|
ExecStopPost = sleep 15
|
||||||
Restart = always
|
Restart = always
|
||||||
RestartSec = 15
|
RestartSec = 15
|
||||||
|
|
||||||
@@ -201,6 +202,28 @@ step_40() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
step_100_info() { echo "Notes"; }
|
||||||
|
step_100_alias() { echo "notes"; }
|
||||||
|
step_100() {
|
||||||
|
cat <<NOTES_EOF
|
||||||
|
# Install additional packages
|
||||||
|
|
||||||
|
kodi-inputstream-adaptive - needed for Youtube plugin
|
||||||
|
kodi-eventclients-kodi-send - recommended way to stop kodi gracefully
|
||||||
|
|
||||||
|
# Sudoers change for Kodi Matrix
|
||||||
|
|
||||||
|
\`\`\`
|
||||||
|
Cmnd_Alias KODI_VT = /bin/fgconsole, /bin/chvt *
|
||||||
|
Cmnd_Alias KODI_VT2 = /bin/openvt
|
||||||
|
|
||||||
|
%video ALL = (root) NOPASSWD: KODI_VT
|
||||||
|
%video ALL = (root) NOPASSWD: KODI_VT2
|
||||||
|
\`\`\`
|
||||||
|
|
||||||
|
NOTES_EOF
|
||||||
|
}
|
||||||
|
|
||||||
# shellcheck disable=SC2034 # Appears unused
|
# shellcheck disable=SC2034 # Appears unused
|
||||||
readonly sqr_minVersion=16
|
readonly sqr_minVersion=16
|
||||||
# shellcheck disable=SC1091 # Don't follow this source
|
# shellcheck disable=SC1091 # Don't follow this source
|
||||||
|
Reference in New Issue
Block a user