summaryrefslogtreecommitdiffstats
path: root/bashrc/dist
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/dist')
-rw-r--r--bashrc/dist/init.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bashrc/dist/init.sh b/bashrc/dist/init.sh
new file mode 100644
index 0000000..4dd4ed1
--- /dev/null
+++ b/bashrc/dist/init.sh
@@ -0,0 +1,13 @@
+# get distribution specific data
+
+_DISTNAME="unknown"
+
+if [[ -f /etc/gentoo-release ]]; then
+ _DISTNAME="gentoo"
+elif [[ -f /etc/debian_version ]] ; then
+ _DISTNAME="debian"
+fi
+
+declare -r _DISTNAME
+
+_load dist common