#!/bin/sh

# breekit
# Copyright (C) 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 120813 I rewrote this and made it a simple invocation
# of a new script called bstart.

# Joseph Rosevear 170130 I made this tailored copy.

# Joseph Rosevear 170130 I changed two lines.

# Joseph Rosevear 171219 I added bplace.

# Joseph Rosevear 180213 I made this more like begin.  I'm using place
# instead of bplace and I'm not exporting it.  I'm invoking brc and
# sourcing bprofile.

# Joseph Rosevear 180329 I cleaned up by removing some in-line comments.

# Joseph Rosevear 180402 I switched the order of invocation of brc and
# bprofile, because that's what is needed since I changed brc to be
# dependent on bprofile.

# Joseph Rosevear 230504 I made some updates.



# Joseph Rosevear 180213
# Define place.
place=`dirname $0`

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

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

# Joseph Rosevear 170130 I changed two lines below.
# Joseph Rosevear 171219 I changed two lines below.
$place/bstart "`$place/init`;

$place/bree \"$*\";
$place/bstart "`$place/init`; $*"
exit"



#!/bin/sh

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

# 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 I changed this script to know where it lives
# (place=`dirname $0`).  Then I used $place in the invocations of 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 191103 I changed the invocation of bstart:

# Was:

#    $place/bstart "love; exhand; export sam_bye_command=exit; $*"

# Now:

#    $place/bstart "love; exhand; sam_bye_command=exit; $*"

# Joseph Rosevear 200826 I made this from script begin by copying it.

# Joseph Rosevear 200826 I removed "exhand;" from the invocation of
# bstart.



place=`dirname $0`

. $place/bprofile

$place/brc 

$place/bstart "`$place/init`; $*"
