summaryrefslogtreecommitdiffstats
path: root/retiolum/bin
diff options
context:
space:
mode:
authormakefu <makefu@syntax-fehler.de>2011-06-23 01:11:50 +0200
committermakefu <makefu@syntax-fehler.de>2011-06-23 01:11:50 +0200
commit99bf20b83c5161866e96df918ab1a98a841c4e88 (patch)
tree162bb4350e15552b449c118e426dd11f0fcd056a /retiolum/bin
parentaf2705c70a245b3f281f7a64039b6d50976fb982 (diff)
parent9ab87e479e1f75665bc69623eeb740758acb3f0a (diff)
merged Makefile, install lmsensors AND tmux
Diffstat (limited to 'retiolum/bin')
-rwxr-xr-xretiolum/bin/install18
1 files changed, 18 insertions, 0 deletions
diff --git a/retiolum/bin/install b/retiolum/bin/install
new file mode 100755
index 00000000..9e4459fb
--- /dev/null
+++ b/retiolum/bin/install
@@ -0,0 +1,18 @@
+#! /bin/sh
+#
+#
+#
+set -euf
+
+trap 'echo "${comment+$comment
+}You are made of stupid!">&2; exit 23' EXIT
+
+if ! test -e /usr/sbin/tincd; then
+ if grep -iq ubuntu /etc/issue; then
+ sudo apt-get install --yes tinc
+ else
+ comment='Install tinc to continue.' exit
+ fi
+fi
+
+trap - EXIT