blob: a507fda36ae83c8a28d495384e8bca55d24b4906 (
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
26
|
#!/bin/sh
if [ $(ls /var/service | grep NetworkManager -c) -eq 0 ]
then
sudo xbps-install -y NetworkManager dbus
sudo ln -s /etc/sv/NetworkManager /var/service/
sudo ln -s /etc/sv/dbus /var/service
sudo sv stop wpa_supplicant
sudo sv stop dhcpcd
sudo unlink /var/service/wpa_supplicant
sudo unlink /var/service/dhcpcd
sleep 5
sudo sv start dbus
sudo sv start NetworkManager
fi
if [ $(ls /var/service | grep elogind -c) -eq 0 ]
then
sudo xbps-install -y elogind
sudo ln -s /etc/sv/elogind /var/service/
sleep 5
sudo sv start elogind
fi
xsync
|