#!/bin/bash

function trap_control_signal()
{
  echo
  echo "ATTENTION:"
  echo "The <CTRL><c> signal was caught"
  echo "Now exiting Bash Shell Script!!!"
  echo
  echo
  exit 0
}

trap trap_control_signal 2

clear
echo "Entering sleep mode"
echo "Press <CTRL><c> to see what happens"
sleep 1000
