windvn/mods/packages-apply/modscript
2022-09-12 08:48:57 +02:00

18 lines
467 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
apt -y clean
" >>"$1/oobe/setupComplete/50-packages"
chmod +x "$1/oobe/setupComplete/50-packages"