summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-09 21:59:31 -0500
committerMarc Coquand <marc@mccd.space>2024-05-09 21:59:31 -0500
commit22f14de0cc375ab5aa2b8f4b3c11f99e8d431e7d (patch)
tree0e568101c9f1c9533582459d4980c4bcfb543a95 /hooks
parentf681e97b7deb9265227c67ff75b13feb6483287b (diff)
downloadrcm-22f14de0cc375ab5aa2b8f4b3c11f99e8d431e7d.tar.gz
rcm-22f14de0cc375ab5aa2b8f4b3c11f99e8d431e7d.tar.bz2
rcm-22f14de0cc375ab5aa2b8f4b3c11f99e8d431e7d.zip
Fix networkmanager script
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-up/network-manager8
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-up/network-manager b/hooks/post-up/network-manager
new file mode 100755
index 0000000..6744f8f
--- /dev/null
+++ b/hooks/post-up/network-manager
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if ! $(xpkg | grep -q NetworkManager); then
+ sudo xbps-install -y NetworkManager
+ sudo ln -s /etc/sv/NetworkManager /var/service
+ sudo sv stop wpa_supplicant
+ sudo sv start NetworkManager
+fi