#!/bin/sh

# begin3
# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012,
# 2017, 2019 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 120813 I rewrote this and made it a simple invocation of a
# new script called bstart.

# Joseph Rosevear 170128 I made this tailored copy.

# Joseph Rosevear 171215 I changed this script to know where it lives.  Then
# I used this information to find brc, bprofile, and bstart.

# Joseph Rosevear 180330 I reversed the order of invocations of
# bprofile and brc.  I did that because I also changed brc, and now it
# needs bprofile to run first.

# Joseph Rosevear 191102 I made this (begin3) from begin2.



# Joseph Rosevear 170128 I changed the line below to point to
# /mnt/150605aa2/bstart instead of ~/bstart

# Joseph Rosevear 170128 I added a lines to run brc and source bprofile.  I
# made brc from the original /etc/rc.d/rc.SAM and bprofile from the original
# /opt/SAM/tips/bash_profile.  I edited them.  I'm doing this to prepare
# sam_temp_base and scratch and to get suitable defintions of sam_temp_base
# and perhaps some other variables and perhaps some other preparations.

# Joseph Rosevear 171215
place=`dirname $0`

#. /mnt/150605aa2/bprofile
# Joseph Rosevear 171215
. $place/bprofile

#/mnt/150605aa2/brc
# Joseph Rosevear 171215
$place/brc 

#/mnt/150605aa2/bstart "love; exhand; export sam_bye_command=exit; $*"
# Joseph Rosevear 171215
$place/bstart3 "love; exhand; sam_bye_command=exit; $*"
