Powered by Linux signature

I use this little snippet of code which generates my signature for all my out-going emails. I am just trying to be an Open Source advocate and spreading the word about Linux

#!/bin/bash

powered="$(head -n 1 /etc/SuSE-release)"

kernel=`uname -r`
echo "Powered by $powered Kernel: $kernel"

kde=`kde-config -v | grep KDE`
echo $kde

uptime

I use KDE and hook this script in kmail via the “Identities” > “Signature” tab

And here is a more generic version without KDE or OpenSuSe specific calls

#!/bin/bash
powered="$(lsb_release -d | awk -F':' '{print $2}')"

kernel=`uname -r`
echo "Powered by $powered Kernel: $kernel"

uptime
This entry was posted in Linux, openSuSe. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">