#!/bin/sh
sv check /etc/init/multi/dbus >/dev/null || exit 1
# Create required dirs
[ ! -d /etc/NetworkManager/dispatcher.d ] && mkdir -m0755 -p /etc/NetworkManager/dispatcher.d
[ ! -d /etc/NetworkManager/system-connections ] && mkdir -m0755 -p /etc/NetworkManager/system-connections
[ ! -d /var/lib/NetworkManager ] && mkdir -m0700 -p /var/lib/NetworkManager
exec /usr/sbin/NetworkManager --no-daemon