This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
2023-08-05 21:19:04 +01:00
|
|
|
case "$ACTION" in
|
|
|
|
post)
|
|
|
|
useradd -r greeter
|
|
|
|
usermod -a -G video greeter
|
|
|
|
usermod -a -G netdev greeter
|
|
|
|
rm -rf /etc/greetd/config.toml
|
|
|
|
mv /etc/greetd/config.toml.2 /etc/greetd/config.toml
|
|
|
|
usermod -d /etc/greetd/greeter greeter
|
|
|
|
chown greeter /etc/greetd/greeter -R
|
|
|
|
cp -r /run/runit/supervise.agetty-tty1 /run/runit/supervise.greetd
|
|
|
|
cp -r /run/runit/supervise.agetty-tty1 /run/runit/supervise.polkitd
|
|
|
|
cp -r /run/runit/supervise.agetty-tty1 /run/runit/supervise.dbus
|
2023-08-12 22:52:59 +01:00
|
|
|
tty="$(cat /sys/class/tty/tty0/active | sed 's/.*\(.\)$/\1/')"
|
2023-08-05 21:19:04 +01:00
|
|
|
echo "chvt 5" >> /etc/rc.local
|
2023-08-12 22:52:59 +01:00
|
|
|
chvt "$tty"
|
2023-09-11 07:22:17 +01:00
|
|
|
rm -rf /etc/dinit.d/boot.d/agetty-tty5
|
2023-08-05 21:19:04 +01:00
|
|
|
sed -i '/ctrl_interface_group=.*$/d' /etc/wpa_supplicant/wpa_supplicant.conf
|
|
|
|
if [ -d /etc/runit/runsvdir/default/wpa_supplicant ]; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
ln -s /etc/sv/wpa_supplicant /etc/runit/runsvdir/default/wpa_supplicant
|
|
|
|
fi
|
|
|
|
if [ -d /etc/runit/runsvdir/default/dhcpcd ]; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
ln -s /etc/sv/dhcpcd /etc/runit/runsvdir/default/dhcpcd
|
|
|
|
fi
|
|
|
|
esac
|