Improvements (#83)
* General Improvements * Remove symlink in CodecPack/target/bin * Fix size of /tmp growing and add issue-report tool * Update issue template instructions * Add issue-report.sh script * Add preuninstall script * Add shell linterpull/84/head 2.1
parent
4113a01f2d
commit
7ccdaceabf
@ -0,0 +1,14 @@
|
||||
name: Lint shell scripts
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v1
|
||||
- name: Run ShellCheck
|
||||
uses: azohra/shell-linter@latest
|
||||
with:
|
||||
exclude-paths: ".github/workflows/mock"
|
||||
@ -0,0 +1,14 @@
|
||||
majorversion="7"
|
||||
minorversion="2"
|
||||
major="7"
|
||||
minor="2"
|
||||
micro="0"
|
||||
buildphase="GM"
|
||||
buildnumber="64570"
|
||||
smallfixnumber="1"
|
||||
nano="1"
|
||||
base="64570"
|
||||
productversion="7.2"
|
||||
os_name="DSM"
|
||||
builddate="2023/06/13"
|
||||
buildtime="21:31:56"
|
||||
@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
|
||||
###############################
|
||||
# VARS
|
||||
###############################
|
||||
|
||||
# shellcheck source=/.github/workflows/mock/VERSION
|
||||
source "/etc/VERSION"
|
||||
dsm_version="$productversion $buildnumber-$smallfixnumber"
|
||||
vs_path=/var/packages/VideoStation
|
||||
cp_path=/var/packages/CodecPack
|
||||
|
||||
###############################
|
||||
# UTILS
|
||||
###############################
|
||||
|
||||
function root_check() {
|
||||
if [[ "$EUID" -ne 0 ]]; then
|
||||
echo "This tool needs root access (please run 'sudo -i' before proceeding)."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
################################
|
||||
# ENTRYPOINT
|
||||
################################
|
||||
|
||||
root_check
|
||||
|
||||
echo "
|
||||
================ ISSUE REPORT TOOL ================
|
||||
|
||||
System Details.....................................
|
||||
DSM Version: $dsm_version
|
||||
Arch details: $(uname -a)
|
||||
|
||||
Package Details....................................
|
||||
VideoStation version: $(synopkg version VideoStation || echo "Not installed")
|
||||
FFMPEG version: $(synopkg version ffmpeg || echo "Not installed")
|
||||
CodecPack version: $(synopkg version CodecPack || echo "Not installed")
|
||||
|
||||
Patch Details......................................
|
||||
Is patched ? $([ -f "$vs_path/target/lib/libsynovte.so.orig" ] && echo "yes" || echo "no")
|
||||
Has gstreamer ? $([ -f "$vs_path/target/bin/gst-launch-1.0" ] && echo "yes" || echo "no")
|
||||
"
|
||||
|
||||
echo " CodecPack target/bin content:"
|
||||
ls -l "$cp_path/target/bin"
|
||||
echo ""
|
||||
echo " CodecPack target/pack/bin content:"
|
||||
ls -l "$cp_path/target/pack/bin"
|
||||
|
||||
echo ""
|
||||
echo "Gstreamer last stderr logs........................."
|
||||
tail -22 /tmp/gstreamer*.stderr
|
||||
|
||||
echo ""
|
||||
echo "FFMPEG last stderr logs............................"
|
||||
tail -22 /tmp/ffmpeg*.stderr
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
repo_full_url=@repo_full_url@
|
||||
curl "$repo_full_url/patcher.sh" | bash -s -- -a unpatch
|
||||
|
||||
exit 0
|
||||
Loading…
Reference in New Issue