mirror of
https://github.com/MeexReay/pmos-xiaomi-angelican.git
synced 2025-06-24 10:32:59 +03:00
22 lines
532 B
Bash
Executable File
22 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source extract-paths.sh
|
|
|
|
LOG_FILE=/proc/last_kmsg
|
|
|
|
pmbootstrap chroot apk add android-tools
|
|
|
|
pmbootstrap chroot adb shell stat $LOG_FILE
|
|
pmbootstrap chroot adb pull $LOG_FILE /home/pmos/full-kernel-trouble.txt
|
|
|
|
sudo mv $PMWORK/chroot_native/home/pmos/full-kernel-trouble.txt /tmp
|
|
|
|
tail -n 100 /tmp/full-kernel-trouble.txt > kernel-trouble.txt
|
|
|
|
less +G /tmp/full-kernel-trouble.txt
|
|
|
|
echo "Saved last 100 lines to \"$PWD/kernel-trouble.txt\""
|
|
echo "Full log was saved to \"/tmp/full-kernel-trouble.txt\""
|
|
|
|
sudo pkill adb
|