summaryrefslogtreecommitdiff
path: root/hooks/post-up/network-manager
blob: 6744f8fd8ff4fd11ae9b53710959b15e30e844f1 (plain)
1
2
3
4
5
6
7
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