#!/bin/bash

############################################################################
#
# Copyright (c) 2014 - A.S._id
#
############################################################################
MENU=tools/scripts/menu_boot

  echo -en "\E[32;1m"
  echo -e "============================================================"
  echo -e " Boot img menu"
  echo -e "============================================================"
  echo -e 
  echo -e "  1 - Extract RAM disk"
  echo -e "  2 - Rebuild boot img"
  echo -e "  3 - RETURN MAIN MENU"

  tput sgr0
  echo -e -n "\033[1m Enter option: \033[0m"
  read opt
  case $opt in

      1) clear; tools/scripts/com_unpack_boot; clear; $MENU;;
      2) clear; tools/scripts/com_make_boot; clear; $MENU;;
      3) clear; ./main_menu;;

  esac
