|# Basic backlight data collection script for Lantern|
|# Written by Zygmunt Krynicki <email@example.com>|
|dest=$(mktemp -d --suffix=-lantern)|
|lspci > "$dest/lspci"|
|lsmod > "$dest/lsmod"|
|uname -a > "$dest/uname"|
|if [ -e /etc/os-release ]; then|
|cp /etc/os-release "$dest/"|
|if [ -e $SCB ]; then|
|for device in $(ls $SCB); do|
|cp "$SCB/$device/max_brightness" "$device_dest/"|
|cp "$SCB/$device/actual_brightness" "$device_dest/"|
|cp "$SCB/$device/brightness" "$device_dest/"|
|cp "$SCB/$device/type" "$device_dest/"|
|tar -Jcf "lantern-submission-$id.tar.xz" -C "$dest" .|
|rm -rf "$dest"|
|echo -- "$id"|
"(nothing sensitive or personally-identifiable though)"
Somebody might regard the uname -a reported hostname (which by default on most systems includes a username) as sensible.
This could do it:
Oh, good point about the hostname! I didn't realize that.
I'll change how uname gets invoked so that we don't have this needless piece of info. I'm currently working on a much much better (though far more complex) version that can do some useful manual tests as well. I'll post it to the main tree at github.com/zyga/lantern.
In the meantime, you can open issues on the current version of the script there.