1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/connman/connman.initd
Clayton Craft 4eaf6ddd7f testing/connman: move connman to community
Per discussion with kaniini, move connman to community and assume
maintainership
2017-09-25 06:03:07 +00:00

20 lines
362 B
Text

#!/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 $?
}