#!/bin/sh
# chkconfig: 2345 99 99
# descirption: Live CD flash check


### BEGIN INIT INFO
# Provides: checkflashboot
# Should-Start:
# Default-Start: 2 3 4 5
# Short-Description: Live CD check for flash boot
# Description: Live CD check for flash boot
### END INIT INFO

. /etc/init.d/functions

gprintf "Checking if system is started from flash\n"

if grep -i "data=UUID" /proc/cmdline > /dev/null; then
	echo "SOURCE=/tmp/sysroot-ro" >> /etc/sysconfig/draklive-install
fi

exit 0
