#
#	Defaults for the boot scripts in /etc/rcS.d
#

# Time files in /tmp are kept in days.
TMPTIME=0
# Set to yes if you want sulogin to be spawned on bootup
SULOGIN=no
# Set to no if you want to be able to login over telnet/rlogin
# before system startup is complete (as soon as inetd is started)
DELAYLOGIN=no
# Assume that the BIOS clock is set to UTC time (recommended)
UTC=yes
# Set VERBOSE to "no" if you would like a more quiet bootup.
VERBOSE=no
# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
EDITMOTD=no
# Verify and apply fastboot options
cat /proc/cmdline | grep -q -e 'root=/dev/mmcblk1p3.*fastboot=y' -e 'fastboot=y.*root=/dev/mmcblk1p3'
if [ $? -eq 0 ]
then
    ENABLE_UDEV_CACHE=yes
#    ENABLE_FASTBOOT=yes;
#    FASTBOOT=qthmi;
else
#    ENABLE_FASTBOOT=no;
    ENABLE_UDEV_CACHE=no
fi
ENABLE_FASTBOOT=no;
ENABLE_ROOTFS_FSCK=yes
# Set FSCKFIX to "yes" if you want to add "-y" to the fsck at startup.
FSCKFIX=yes
# Set TICKADJ to the correct tick value for this specific machine
#TICKADJ=10000
# Enable caching in populate-volatile.sh
VOLATILE_ENABLE_CACHE=yes
# Indicate whether the rootfs is intended to be read-only or not.
# Setting ROOTFS_READ_ONLY to yes and rebooting will give you a read-only rootfs.
# Normally you should not change this value.
ROOTFS_READ_ONLY=yes
ETC_READ_ONLY=no
# Detect secure boot by checking if rootfs is a mapped device
SECURE_BOOT=no
[ -e /dev/mapper/rootfs ] && SECURE_BOOT=yes
# eMMC partitions
FACTORYPARTITION=/dev/mmcblk1p1
FACTORYMNT=/mnt/factory/
CONFIGOSPARTITION=/dev/mmcblk1p2
CONFIGOSMNT=/mnt/configos/
MAINOSPARTITION=/dev/mmcblk1p3
MAINOSMNT=/mnt/mainos/
ETCPARTITION=/dev/mmcblk1p5
[ "$SECURE_BOOT" = "yes" ] && ETCPARTITION=/dev/mmcblk1p7
ETCMNT=/mnt/etc/
DATAPARTITION=/dev/mmcblk1p6
DATA2PARTITION=/dev/mmcblk1p7
if [ "$SECURE_BOOT" = "yes" ]; then
    DATAPARTITION=/dev/mapper/data
    DATA2PARTITION=/dev/mmcblk1p9
fi
DATAMNT=/mnt/data/
DATA2MNT=/mnt/data2/
FITCONFIGOSPARTITION=/dev/mmcblk1p5
FITCONFIGOSMNT=/mnt/fit-configos/
FITMAINOSPARTITION=/dev/mmcblk1p6
FITMAINOSMNT=/mnt/fit-mainos/
