#!/usr/bin/bash re-enable () { commands here to re-enable the NE echo -n "Press ENTER to continue" ; read a main-menu } check-NE () { trap 're-enable' 2 command series that hangs echo -n "Press ENTER to continue" ; read a main-menu } main-menu () { choices with read a case $a 1) re-enable;; 2) check-NE;; .. 8 case statements *) exit;; } main-menu