#!/bin/sh # SecPanel.sh # Wed Feb 11 16:35:45 PST 2009 # Chieh Cheng # http://www.CynosureX.com/ # GNU General Public License (GPL) Version 2, June 1991 if [ -L "$0" ] then realPath=`readlink "$0"` scriptName=`basename "${realPath}"` scriptPath=`dirname "${realPath}"` else scriptName=`basename "$0"` scriptPath=`dirname "$0"` fi executable="${scriptPath}/secpanel" if [ -x "${executable}" ] then cwd=`pwd` cd "${scriptPath}" "${executable}" cd "${cwd}" else echo "${executable} does not exist or is not executable!" fi