#!/bin/bash

echo "###################################################################"
echo "# Download Bootstrap API"
echo "###################################################################"
echo

mkdir -p /usr/share/AnNyung
/usr/bin/curl http://mirror.oops.org/pub/AnNyung/2/inst/functions -o /usr/share/AnNyung/functions
source /usr/share/AnNyung/functions
echo

# if don't install annyung-release, install it
an_release

# Set system character set
an_setlang ko_KR.UTF-8

an_x86_64_fix
an_pkgupdate

# Removed useless firmware
#an_remfirmware

# Removed useless packages
an_pkgrem system-config-firewall-base

if [ -z "$kick" ]; then
	# Installed default packages
	an_pkginst bind-utils bridge-utils file irqbalance
	an_pkginst logrotate ntp ntpdate ntsysv readahead
	an_pkginst sysstat tmpwatch vim-enhanced yum-cron

	# Install annyung core packages
	an_pkginst oops-firewall utf8-profile
	an_pkginst jfbterm yum-annyung
fi

an_nozeroconf
an_ipv6_off
an_selinux_off

an_service off postfix
an_service on ntpd ntpdate yum-cron nscd irqbalance

an_userdel uucp games gopher
an_grpdel uucp dialout games gopher tape

/sbin/annyung-init-banner

an_yumblock

an_end

exit 0
