blob: 9e4459fb0b05bdde17d8b2512e5a66969daa9876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|