|
#!/bin/sh
|
|
modprobe tun
|
|
caps='-all,+NET_ADMIN,+NET_RAW'
|
|
drop_caps="setpriv --inh-caps $caps --bounding-set $caps"
|
|
if [ -f /etc/yggdrasil.conf ]; then
|
|
exec $drop_caps yggdrasil -useconffile /etc/yggdrasil.conf 2>&1
|
|
else
|
|
exec $drop_caps yggdrasil -autoconf 2>&1
|
|
fi
|