3
add_option "purge-chroot" "`eval_gettext "purge exiting LTSP chroot if present"`" "advanced" "false"
4
7
if [ -d $ROOT ] ; then
5
echo "NOTE: Root directory $ROOT already exists, this will lead to problems, please remove it before trying again. Exiting."
8
if [ "true" = "$option_purge_chroot_value" ]; then
9
# wipe it out, so we can try again
10
rm --force --recursive --one-file-system "$ROOT"
12
echo "NOTE: Root directory $ROOT already exists, this will lead to problems, please remove it before trying again. Exiting."