summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/install
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
commit0ba0ca5efa18485a95005a4c22891b0c4927e732 (patch)
treef27c9df8f9ccf6aa78a7cdbc55e1cac78c50d398 /retiolum/bin/install
parentefee2013940fa4c57ec3b1ae046e64036864cc46 (diff)
parent8f900fff02ac22ba87c35e6745af11c0b8d98855 (diff)
merged Makefile, install lmsensors AND tmux
Diffstat (limited to 'retiolum/bin/install')
-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