Is anyone else interested in detecting Raspbian (as Raspbian, not Debian), and then showing the Raspberry Pi icon? I’m thinking digging in to it more, but only if it makes sense for more than just me … :-).
Agreed! Was thinking exactly the same thing - in fact, was playing with this last night. I can make it work … but then further changes on the LibreNMS side, agreed?
Nope, we use what’s returned in distro - well unless you want a logo associating. If so, html/images/os/$name - $name is what you return from distro so maybe use rasbian.
BTW, in case it’s easier for you to just add this in - here is the change (in the distro script). Before …
elif [ -f /etc/debian_version ] ; then
DIST=“Debian cat /etc/debian_version“
REV=””
And after …
elif [ -f /etc/debian_version ] ; then
DIST="Debian cat /etc/debian_version“
REV=”"
ID=lsb_release -i | awk -F ':' '{print $2}' | sed 's/ //g'
if [ “${ID}” = “Raspbian” ] ; then
DIST="Raspbian cat /etc/debian_version"
fi
So just added those last 4 lines in the “debian section”. Thanks.
Just checking in - do I need to do anything to get this in to the version of distro on Github? It’s working fine for me locally, but want to share if possible … :).