diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-22 11:14:26 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-22 11:14:26 -0500 |
commit | 658d2fe4cad1ea33548c075a6ab4cdf0bc0de3f6 (patch) | |
tree | 56c8dc4a89dfff7e20432817324f97f4b4d21697 | |
parent | 4e840780a1d494640b7060f2bf7cc261dda343a2 (diff) | |
download | rcm-658d2fe4cad1ea33548c075a6ab4cdf0bc0de3f6.tar.gz rcm-658d2fe4cad1ea33548c075a6ab4cdf0bc0de3f6.tar.bz2 rcm-658d2fe4cad1ea33548c075a6ab4cdf0bc0de3f6.zip |
More post-up scripts
-rwxr-xr-x | hooks/post-up/permissions | 4 | ||||
-rwxr-xr-x | hooks/post-up/services | 26 |
2 files changed, 30 insertions, 0 deletions
diff --git a/hooks/post-up/permissions b/hooks/post-up/permissions new file mode 100755 index 0000000..a2fda88 --- /dev/null +++ b/hooks/post-up/permissions @@ -0,0 +1,4 @@ +#!/bin/sh + +chmod 600 ~/.config/aerc/accounts.conf +chmod 700 ~/.gnupg diff --git a/hooks/post-up/services b/hooks/post-up/services new file mode 100755 index 0000000..a507fda --- /dev/null +++ b/hooks/post-up/services @@ -0,0 +1,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 |