Add Fedora support to .bashrc.d/01detect_system (based on Fedora 8).
authorW. Trevor King <wking@drexel.edu>
Thu, 1 Dec 2011 15:23:48 +0000 (10:23 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 1 Dec 2011 15:23:48 +0000 (10:23 -0500)
src/.bashrc.d/01detect_system

index df8b7f38392ad4cb45d9c11bc046931341c494a4..6003503232abb3648f5525f1e9df3f2f5c3f949f 100644 (file)
@@ -13,6 +13,8 @@ if [ -z "${OS}" ]; then
                export OS='Debian'
        elif grep -i ubuntu /etc/issue > /dev/null 2>&1; then
                export OS='Ubuntu'
+       elif grep -i fedora /etc/issue > /dev/null 2>&1; then
+               export OS='Fedora'
        else
                echo "unknown system.  Adjust .bashrc.d/01detect_system or set OS by hand" >&2
        fi