entrypoint.sh: check for /dev/net/tun
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
23301ebb29
commit
2dd0492b75
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue