void-packages/srcpkgs/yggdrasil/files/yggdrasil/run

10 lines
264 B
Bash
Executable File

#!/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