1 |
#!/bin/bash |
#!/bin/bash |
2 |
# Magellan Linux Installer Functions (mage.functions.sh) |
# Magellan Linux Installer Functions (mage.functions.sh) |
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage3.functions.sh,v 1.16 2005-08-19 02:22:37 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage3.functions.sh,v 1.17 2005-08-28 19:21:05 niro Exp $ |
4 |
|
|
5 |
mage_setup() { |
mage_setup() { |
6 |
install -d $INSTALLDB |
install -d $INSTALLDB |
183 |
#file is protected - write backup file |
#file is protected - write backup file |
184 |
# "._cfg${COUNTER}_{FILENAME} |
# "._cfg${COUNTER}_{FILENAME} |
185 |
2) |
2) |
186 |
#moves the cursor up |
if [ "${VERBOSE}" == "on" ] |
187 |
echo -en \\033[A |
then |
188 |
echo -e "${COLRED}! prot ${COLDEFAULT} === FILE: $pathto" |
# moves the cursor up |
189 |
|
echo -en \\033[A |
190 |
|
echo -e "${COLRED}! prot ${COLDEFAULT} === FILE: $pathto" |
191 |
|
fi |
192 |
FILENAME="$(basename "${pathto}")" |
FILENAME="$(basename "${pathto}")" |
193 |
FILE="$pathto" |
FILE="$pathto" |
194 |
COUNTER=$(count_protected_files "${FILE}") |
COUNTER=$(count_protected_files "${FILE}") |