diff options
-rwxr-xr-x | services/NetworkManager/run | 7 | ||||
l--------- | services/NetworkManager/supervise | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/services/NetworkManager/run b/services/NetworkManager/run new file mode 100755 index 0000000..17e0b14 --- /dev/null +++ b/services/NetworkManager/run @@ -0,0 +1,7 @@ +#!/bin/sh +sv check 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 NetworkManager -n diff --git a/services/NetworkManager/supervise b/services/NetworkManager/supervise new file mode 120000 index 0000000..f366780 --- /dev/null +++ b/services/NetworkManager/supervise @@ -0,0 +1 @@ +/run/runit/supervise.NetworkManager \ No newline at end of file |