diff options
Diffstat (limited to '')
-rwxr-xr-x | hooks/pre-up/3-void | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hooks/pre-up/3-void b/hooks/pre-up/3-void index e0824c2..ab494c3 100755 --- a/hooks/pre-up/3-void +++ b/hooks/pre-up/3-void @@ -2,7 +2,14 @@ # We'll use xpkg from xtools to find installable packages if ! [ -x "$(command -v xpkg)" ]; then - sudo xbps-install xtools + sudo xbps-install -y xtools +fi + +if ! [ -x "$(command -v nmtui)" ]; then + sudo xbps-install -y NetworkManager + sudo ln -s /etc/sv/NetworkManager /var/service + sudo sv stop wpa_supplicant + sudo sv start NetworkManager fi # Set up file sync @@ -11,5 +18,5 @@ if [ ! -f ~/repository.list ]; then fi if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then - sudo xbps-install -Sy void-repo-nonfree + sudo xbps-install -y void-repo-nonfree fi |