dumper: dumper.sh: Show Kernel Version In Telegram Message

- Why Not?
This commit is contained in:
Box In a Box 2021-12-04 22:38:58 +05:30
parent 541bd2a06d
commit bdc2949586

View File

@ -1012,6 +1012,8 @@ sort -nr < "${TMPDIR}"/sized_files.txt > "${OUTDIR}"/all_files.txt
rm -rf "${TMPDIR}" 2>/dev/null
#Grep Kernel Version #Please Forgive Me For This Poor Script I've Written Which Might Not even work with some other Architecture because of how specific the command is.
KERNEL_VERSION=$(sed -n '3p' "${OUTDIR}"/bootRE/ikconfig | cut -c 15- | rev | cut -c 22- | rev)
if [[ -s "${PROJECT_DIR}"/.gitlab_token ]]; then
GITLAB_TOKEN=$(< "${PROJECT_DIR}"/.gitlab_token) # Write Your GitLab Token In a Text File
@ -1093,6 +1095,7 @@ if [[ -s "${PROJECT_DIR}"/.gitlab_token ]]; then
printf "\n<b>Device: %s</b>" "${codename}"
printf "\n<b>Version:</b> %s" "${release}"
printf "\n<b>Fingerprint:</b> %s" "${fingerprint}"
printf "\n<b>Kernel Version:</b> %s" "${KERNEL_VERSION}"
printf "\n<a href=\"https://%s/%s/%s/-/tree/%s/\">GitLab Tree</a>" "${GITLAB_INSTANCE}" "${GIT_ORG}" "${repo}" "${branch}"
printf "\nJoin $CHAT_ID For More Dumps"
printf "\nJoin $CHAT_REQUEST_ID To Dump Your Firmware"
@ -1102,6 +1105,7 @@ if [[ -s "${PROJECT_DIR}"/.gitlab_token ]]; then
printf "\n<b>Device: %s</b>" "${codename}"
printf "\n<b>Version:</b> %s" "${release}"
printf "\n<b>Fingerprint:</b> %s" "${fingerprint}"
printf "\n<b>Kernel Version:</b> %s" "${KERNEL_VERSION}"
printf "\n<a href=\"https://%s/%s/%s/-/tree/%s/\">GitLab Tree</a>" "${GITLAB_INSTANCE}" "${GIT_ORG}" "${repo}" "${branch}"
printf "\nDump Started By : <a href=\"tg://user?id=${USER_ID}\">${USER_FIRST_NAME}</a>"
printf "\nJoin $CHAT_ID For More Dumps"