#!/bin/bash
# Author: Steven Shiau <steven _at_ nchc org tw>
# License: GPL

. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/conf/drbl-ocs.conf
. /opt/drbl/sbin/ocs-functions

# 
prog="$(basename $0)"
USAGE() {
    echo "Usage:"
    echo "To see the clonezilla live help message:"
    echo "$prog [ro|rw]" 
    echo "Ex:"
    echo "$prog rw"
}
type=$1
[ -z "$type" ] && type="rw"

ask_language_if_supported_with_bterm
[ -z "$ocs_lang" ] && ocs_lang=en
ask_and_load_lang_set $ocs_lang

case "$type" in
  ro) show-ocs-live-save-ro-prompt ;;
  rw) show-general-ocs-live-prompt ;;
   *) USAGE && exit 1 ;;
esac
