Files
ports/sysutils/bashburn/files/patch-BashBurn.sh
T
Alejandro Pulver d6b248bce9 Sick of all those fancy CD-burning apps not working for you? You need
something that just gets the work done? Welcome to BashBurn - It just
works!

BashBurn is the new name for the cd burning shell script Magma. It's
not the best looking CD-burning application out there, but it does
what you want it to do. (And if not then probably didn't want to do it
anyway)

WWW: http://bashburn.sourceforge.net/

PR:		ports/115846
Submitted by:	Martin Tournoij <carpetsmoker at xs4all.nl>
2007-09-14 04:26:27 +00:00

25 lines
959 B
Bash

--- BashBurn.sh.orig 2007-07-18 21:48:55.000000000 +0200
+++ BashBurn.sh 2007-08-24 14:58:30.000000000 +0200
@@ -31,18 +31,13 @@
# This is run at first
init_bashburn()
{
- if [[ -r "${BBCONFFILE}" ]]; then # If /etc/bashburnrc exists, read in the vars.
+ if [[ ! -r "${BBCONFFILE}" ]]; then
+ cp ${BBCONFFILE}.sample ${BBCONFFILE}
+ fi
export BBROOTDIR="$( cat $BBCONFFILE | grep -v '^#' | grep BBROOTDIR: | cut -d ":" -f 2- | sed -e "s/^[[:blank:]]//g")"
source ${BBROOTDIR}/misc/commands.idx
source ${BBROOTDIR}/misc/variables.idx
export BBTEMPMOUNTDIR="${BBBURNDIR}/mnt"
- else
- echo "There is no '${BBCONFFILE}'" 1>&2
- echo "That is the file where BashBurn stores its settings."
- echo "You must run the BashBurn installation script first as root to install"
- echo "all needed files. Do that now and then start 'bashburn' again."
- exit 1
- fi
# Read in the language file
source ${BBROOTDIR}/lang/${BBLANG}/BashBurn.lang