This commit is contained in:
Spirit 👾 2024-08-19 10:06:11 +03:00
parent b50e6ccab1
commit 9f0d40366d

23
init-void.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
if [ -z "$USERNAME" ]; then
USERNAME="spirit"
fi
cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
xbps-install -Suy xbps
xbps-install -uy
xbps-install -y base-system
xbps-remove -y base-voidstrap
xbps-reconfigure -fa
useradd -m -G wheel -s /bin/bash $USERNAME
ed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
if [[ "$1" == "--wsl" ]]; then
cat <<EOF > /etc/wsl.conf
[user]
default=$USERNAME
EOF
fi