mirror of
https://github.com/spirit-x64/scripts.git
synced 2025-01-19 02:01:56 +03:00
24 lines
447 B
Bash
24 lines
447 B
Bash
|
#!/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
|