summaryrefslogtreecommitdiff
path: root/hooks/post-up
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-06-08 12:12:57 -0500
committerMarc Coquand <marc@mccd.space>2024-06-08 12:12:57 -0500
commitfdc18aae269d612d9a4fda6545f89aa3ee7f09a0 (patch)
treeb33d472c26fedc846a1faff9f688b731d8297f27 /hooks/post-up
parent8dc801597a3b7d5464580b55626d1ccd6c0a444b (diff)
downloadrcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.tar.gz
rcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.tar.bz2
rcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.zip
Updates
Diffstat (limited to 'hooks/post-up')
-rwxr-xr-xhooks/post-up/services31
1 files changed, 15 insertions, 16 deletions
diff --git a/hooks/post-up/services b/hooks/post-up/services
index a507fda..0d36f7d 100755
--- a/hooks/post-up/services
+++ b/hooks/post-up/services
@@ -1,26 +1,25 @@
#!/bin/sh
-if [ $(ls /var/service | grep NetworkManager -c) -eq 0 ]
+if [ $(ls /var/service | grep elogind -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
+ doas xbps-install -y elogind
+ doas ln -s /etc/sv/elogind /var/service/
sleep 5
- sudo sv start dbus
- sudo sv start NetworkManager
+ doas sv start elogind
fi
-
-if [ $(ls /var/service | grep elogind -c) -eq 0 ]
+if [ $(ls /var/service | grep NetworkManager -c) -eq 0 ]
then
- sudo xbps-install -y elogind
- sudo ln -s /etc/sv/elogind /var/service/
+ 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
- sudo sv start elogind
+ doas sv start dbus
+ doas sv start NetworkManager
fi
-xsync
+echo "Services setup; logout and in, then run xsync"