Lines 12-26
Link Here
|
12 |
exit $1 |
12 |
exit $1 |
13 |
} |
13 |
} |
14 |
|
14 |
|
15 |
if ! [ -e ./mkpasswd ] |
|
|
16 |
then |
17 |
echo "You need to Make the package before you can use this script" |
18 |
echo "(required ./mkpasswd)" |
19 |
bsclean 0 |
20 |
fi |
21 |
|
15 |
|
22 |
echo "BAD\$" > $TMPFILE |
16 |
echo "BAD\$" > $TMPFILE |
23 |
echo "Test" | ./mkpasswd -s >> $TMPFILE |
17 |
echo "Test" | mkpasswd -s >> $TMPFILE |
24 |
CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 ) |
18 |
CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 ) |
25 |
|
19 |
|
26 |
|
20 |
|
Lines 149-161
Link Here
|
149 |
|
143 |
|
150 |
if [ x$ERRORLEVEL = x0 ] |
144 |
if [ x$ERRORLEVEL = x0 ] |
151 |
then |
145 |
then |
152 |
if [ -x ./mkpasswd ] |
146 |
if [ -x @PREFIX@/bin/mkpasswd ] |
153 |
then |
147 |
then |
154 |
SUPERPASS="+"$(echo "$SUPERPASS" | ./mkpasswd -s) |
148 |
SUPERPASS="+"$(echo "$SUPERPASS" | mkpasswd -s) |
155 |
BNCPASS="+"$(echo "$BNCPASS" | ./mkpasswd -s) |
149 |
BNCPASS="+"$(echo "$BNCPASS" | mkpasswd -s) |
156 |
else |
150 |
else |
157 |
clear |
151 |
clear |
158 |
echo "You have not did ./configure and make so there is no ./mkpasswd" |
152 |
echo "You have not did ./configure and make so there is no mkpasswd" |
159 |
echo "This program is required to produce the encryption" |
153 |
echo "This program is required to produce the encryption" |
160 |
bsclean 0 |
154 |
bsclean 0 |
161 |
fi |
155 |
fi |