I have a number of distros I'm playing with. I label the SD cards, but:
- They are in upside down
- I'm usually in another room from the RPi
I set up a service in init.d which lets me know via Pushover when my Pi is shutting down or starting up (using the API via curl).
I'd like this to include which distro I'm currently using.
I can see on my latest boot (playing with adafruit Raspbian):
Linux raspberrypi 3.1.9adafruit+ #8 PREEMPT Wed Aug 1 18:02:42 EDT 2012 armv6l
How can I get that information to include in my script?
I installed lsb-release, but that only gives me this:
pi@raspberrypi / $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux testing/unstable Release: testing/unstable Codename: n/a
Which would look the same as my regular Raspbian.
In addition, I would probably like to indicate something myself about the particular instance on the SD card (since I'll probably have multiple of the same base distro). Obviously, I can just drop a file in the same place on each SD-card, but is there a convention for where to put that kind of information?