entrypoint.sh: check for /dev/net/tun
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Reynir Björnsson 2022-08-03 15:40:26 +02:00
parent 23301ebb29
commit 2dd0492b75

View file

@ -6,6 +6,10 @@ if [ "$#" -lt 1 ]; then
fi
unikernel=$1
shift
test -c /dev/net/tun || {
echo Cannot access /dev/net/tun >&2
exit 2
}
ip=$(ip a show eth0 | awk '/inet/{print $2}') || {
echo Could not determine ip address >&2
exit 2