#!/bin/bash /etc/ikcommon

#避免ttyS0 死循环
DEVTTY=$(readlink /proc/$$/fd/1)
if [ "${DEVTTY:0:9}" = "/dev/ttyS" ];then
	if ! echo "" ;then
		while :;do
			sleep 99999999
		done
	fi
fi

#echo -en "\e]P7cacaca"
#if [ "$DEVTTY" = "/dev/tty1" -o "$DEVTTY" = "/dev/tty0" ];then
#	if [ ! -f $IK_DIR_TMP/.use_vga16_driver ];then
#		SHELL="${BASH_ARGV[-1]}" fbterm
#		exit
#	fi
#fi

mkdir -p $IK_DIR_CACHE/i18n


if [ "$ARCH_ARM_HDD" ];then
	Include sys/hdd_control.sh
	if ! hdd_ikconfig_is_testd ;then
		exec iksh
	fi
fi

if [ "$BOOTGUIDE" = "cd" -o "$BOOTGUIDE" = "ucd" ];then
	. /etc/setup/rc.install
else
	. /etc/setup/rc.console
fi


