blob: 0d36f7d7e7fe56a6ccb40f24ff36ae0c509e0946 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
if [ $(ls /var/service | grep elogind -c) -eq 0 ]
then
doas xbps-install -y elogind
doas ln -s /etc/sv/elogind /var/service/
sleep 5
doas sv start elogind
fi
if [ $(ls /var/service | grep NetworkManager -c) -eq 0 ]
then
doas xbps-install -y NetworkManager dbus
doas ln -s /etc/sv/NetworkManager /var/service/
doas ln -s /etc/sv/dbus /var/service
doas sv stop wpa_supplicant
doas sv stop dhcpcd
doas unlink /var/service/wpa_supplicant
doas unlink /var/service/dhcpcd
sleep 5
doas sv start dbus
doas sv start NetworkManager
fi
echo "Services setup; logout and in, then run xsync"
|