windvn/mods/packages-apply/modscript
2022-08-26 16:57:07 +02:00

17 lines
454 B
Bash

#!/bin/bash
echo "#!/bin/bash" >"$1/oobe/setupComplete/50-packages"
if [ "$WDVN_ONLINE" == "1" ]; then
echo 'echo "A network connection will have to be established, if it isnt already."
echo "Press RETURN to continue."
read
nmtui
' >> "$1/oobe/setupComplete/50-packages"
fi
echo "apt -y install $WDVN_PACKAGES_DL
apt -y remove $WDVN_PACKAGES_REMOVE
apt -y autoremove
" >>"$1/oobe/setupComplete/50-packages"
chmod +x "$1/oobe/setupComplete/50-packages"