blob: ab494c33e0110455f409724acec55533fbf0d79c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# We'll use xpkg from xtools to find installable packages
if ! [ -x "$(command -v xpkg)" ]; then
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
if [ ! -f ~/repository.list ]; then
xpkg -m > ~/repository.list
fi
if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then
sudo xbps-install -y void-repo-nonfree
fi
|