Skip to main content
edited tags
Link
user46
user46
Tweeted twitter.com/#!/StackRaspi/status/233654730117763072
edited title
Link
Alex Chamberlain
  • 15.6k
  • 14
  • 68
  • 113

Keeping track of distros when booting How do I access the distribution's name on the command line?

Source Link
Cade Roux
  • 2.1k
  • 5
  • 23
  • 27

Keeping track of distros when booting

I have a number of distros I'm playing with. I label the SD cards, but:

  1. They are in upside down
  2. 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?