54 lines
929 B
Bash
Raw Normal View History

#!/usr/bin/bash
#----------------------------------------------------------------------
cd $(dirname $0)
PATH=$PATH:$(dirname "$(pwd)")
#----------------------------------------------------------------------
source ../.pct-helpers
#----------------------------------------------------------------------
readConfig
SOFTWARE=(
make
w3m links
qrencode
htop iftop iotop
tmux
)
#----------------------------------------------------------------------
# Tools
if xreadYes "# Update system?" UPDATE ; then
@ apt update
@ apt upgrade
fi
if xreadYes "# Install additional apps?" APPS ; then
@ apt install $(SOFTWARE[@])
fi
# Networking
if xreadYes "# Create bridges?" BRIDGES ; then
echo
fi
# Firewall
# XXX this should be done after the setup process...
if xreadYes "# Update firewall rules?" BRIDGES ; then
echo
fi
#----------------------------------------------------------------------
# vim:set ts=4 sw=4 :