Created
October 19, 2018 01:49
-
-
Save FacuM/2ce81f51ca69507f989f6bea006e3879 to your computer and use it in GitHub Desktop.
Untested dmesg as oneshot service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
while true | |
LAST=$(dmesg | tail -1) | |
if [ $(dmesg | tail -1) -ne "$LAST" ] | |
then | |
printf "$LAST" >> /data/local/kmsg | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment