diff options
Diffstat (limited to 'community/connman/connman.initd')
-rw-r--r-- | community/connman/connman.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/connman/connman.initd b/community/connman/connman.initd new file mode 100644 index 0000000000..1728694274 --- /dev/null +++ b/community/connman/connman.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +description="Connection Manager" +cfgfile=/etc/connman/main.conf +pidfile=/run/connman/connman.pid +command=/usr/sbin/connmand +command_args="$command_args -n -c $cfgfile" +command_background="yes" + +depend() { + need dbus + provide net +} + +start_pre() { + ebegin + checkpath --directory ${pidfile%/*} + ln -sf ${pidfile%/*}/resolv.conf /etc/ + eend $? +} |