#!/bin/sh

# hold
# Copyright (C) 2004, 2005, 2006, 2007, 2020 Joseph Rosevear

# This file is part of an application of SAM for GNU/Linux Slackware
# known as SAM-GLS.

# SAM-GLS is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.

# SAM-GLS is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# (Slackware is a registered trademark of Patrick Volkerding and
# Slackware Linux, Inc.)



# Joseph Rosevear 200918 I fixed a bug by replacing

#    sam1-5

# with

#    sam1 5

# It seems I made some changes to SAM that affected this script.  There
# is no longer a sam1-5 command.



if ! [ "$*" = "" ]; then 
   echo
   echo Doing $* . . .
   echo
   echo Holding place in script by starting new SAM session.
   echo To un-do the above use \"exit\" to terminate this SAM session.
   echo You will be returned to your previous session.
   pause
   $*
else
   echo
   echo Holding place in script by starting new SAM session with
   echo
   echo $level
   echo
   echo as the local menu.  When you are finished with this
   echo menu use \"exit\".  The script will then finish, and you
   echo will be returned to the previous menu.
   pause
fi

if [ "$sam_add" = "" ]; then
   $sam_go/sam1 5 $level - final
else
   $sam_go/sam1 5 $level $sam_add final
fi
