function check { [ "$INTERNET" = "down" ] && return 1 if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then return 1 else return 0 fi } DESCRIPTION="Install Firefox (recommended)" PACKAGES="firefox" function post_install { echo "web/firefox" >> /tmp/stage-2-choices }