#!/bin/sh

# bstart 
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012, 2017,
# 2018 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 111231 I replace #!/bin/sh with #!/bin/bash.

# Joseph Rosevear 120808 I changed the prgama back to #!/bin/sh, because due
# to changes in SAM the sh shell will work fine.

# Joseph Rosevear 170128 This is a tailored copy of bstart.  I changed the
# definition of sam_distro.  Instead of /opt/SAM it is
# /mnt/150605aa2/opt/SAM.

# Joseph Rosevear 170128 I changed ~/sam-start to /mnt/150605aa2/sam-start
# below.

# Joseph Rosevear 171215 I changed it to use bprofile (variable) which has
# already been defined and exported by bprofile (script).

# Joseph Rosevear 180329 I moved definition and export of sam_distro to
# bprofile.

# Joseph Rosevear 180329 I changed bplace to sam_root.

# Joseph Rosevear 180329 I cleaned up by deleting some of the inline
# comments.


export env_user=$HOME
export env_config=$HOME/config
# Joseph Rosevear 180329 I moved definition and export of sam_distro to bprofile.

more="export sam_bye_command=exit"
$sam_distro/go/sam1 5 $sam_root/sam-start - "final; $more; $*"
