Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 188265 | Differences between
and this patch

Collapse All | Expand All

(-)scripts/install.sh (-7 / +7 lines)
Lines 6-12 Link Here
6
# Author: Olli Salonen <oasalonen@gmail.com>	#
6
# Author: Olli Salonen <oasalonen@gmail.com>	#
7
#################################################
7
#################################################
8
8
9
INIT_DIR=/etc/init.d
9
INIT_DIR=$DESTDIR/etc/init.d
10
INIT_PROG=""
10
INIT_PROG=""
11
INIT_DEL=
11
INIT_DEL=
12
INIT_ADD=
12
INIT_ADD=
Lines 15-26 Link Here
15
DATA_DIR=data
15
DATA_DIR=data
16
DEFAULTS_DIR=$DATA_DIR/defaults
16
DEFAULTS_DIR=$DATA_DIR/defaults
17
NAME=btnx
17
NAME=btnx
18
BIN_DIR=/usr/sbin
18
BIN_DIR=$DESTDIR/usr/sbin
19
PROGRAM=$BIN_DIR/$NAME
19
PROGRAM=$BIN_DIR/$NAME
20
CONFIG_DIR=/etc/btnx
20
CONFIG_DIR=$DESTDIR/etc/btnx
21
CONFIG=btnx_config
21
CONFIG=btnx_config
22
EVENTS=events
22
EVENTS=events
23
23
MKDIR="mkdir -p"
24
24
25
function prompt_yn {
25
function prompt_yn {
26
	while [ 1 ]; do
26
	while [ 1 ]; do
Lines 87-93 Link Here
87
	echo -ne "."
87
	echo -ne "."
88
else
88
else
89
	#echo -ne "Making config dir... "
89
	#echo -ne "Making config dir... "
90
	mkdir $CONFIG_DIR
90
	$MKDIR $CONFIG_DIR
91
	if [ $? -ne 0 ]; then
91
	if [ $? -ne 0 ]; then
92
		echo -e "\n* Error: could not make directory: $CONFIG_DIR. \rAre you root?"
92
		echo -e "\n* Error: could not make directory: $CONFIG_DIR. \rAre you root?"
93
		exit 1
93
		exit 1
Lines 100-106 Link Here
100
	echo -ne "."
100
	echo -ne "."
101
else
101
else
102
	#echo -ne "Making bin dir... "
102
	#echo -ne "Making bin dir... "
103
	mkdir $BIN_DIR
103
	$MKDIR $BIN_DIR
104
	if [ $? -ne 0 ]; then
104
	if [ $? -ne 0 ]; then
105
		echo -e "\n* Error: could not make directory: $BIN_DIR."
105
		echo -e "\n* Error: could not make directory: $BIN_DIR."
106
		exit 1
106
		exit 1
Lines 113-119 Link Here
113
	echo -ne "."
113
	echo -ne "."
114
else
114
else
115
	#echo -ne "Making init dir... "
115
	#echo -ne "Making init dir... "
116
	mkdir $INIT_DIR
116
	$MKDIR $INIT_DIR
117
	if [ $? -ne 0 ]; then
117
	if [ $? -ne 0 ]; then
118
		echo -e "\n* Error: could not make directory: $INIT_DIR."
118
		echo -e "\n* Error: could not make directory: $INIT_DIR."
119
		exit 1
119
		exit 1

Return to bug 188265