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/mage4.functions.sh,v 1.6 2005-10-02 14:09:41 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.7 2005-10-04 14:35:21 niro Exp $ |
4 |
|
|
5 |
mage_setup() |
mage_setup() |
6 |
{ |
{ |
1972 |
eval value=\$$(echo ${var}) |
eval value=\$$(echo ${var}) |
1973 |
echo "${value}" |
echo "${value}" |
1974 |
|
|
1975 |
unset preinstall |
# unset these functions |
1976 |
unset postinstall |
unset -f preinstall |
1977 |
unset preremove |
unset -f postinstall |
1978 |
unset postremove |
unset -f preremove |
1979 |
|
unset -f postremove |
1980 |
} |
} |
1981 |
|
|
1982 |
mage_install() |
mage_install() |
2157 |
# echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} " |
# echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} " |
2158 |
echo "successfully installed." |
echo "successfully installed." |
2159 |
|
|
2160 |
unset preinstall |
# unset these functions |
2161 |
unset postinstall |
unset -f preinstall |
2162 |
unset preremove |
unset -f postinstall |
2163 |
unset postremove |
unset -f preremove |
2164 |
|
unset -f postremove |
2165 |
} |
} |
2166 |
|
|
2167 |
md5sum_packages() |
md5sum_packages() |
2420 |
# echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} " |
# echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} " |
2421 |
echo "successfully removed." |
echo "successfully removed." |
2422 |
|
|
2423 |
unset preinstall |
# unset these functions |
2424 |
unset postinstall |
unset -f preinstall |
2425 |
unset preremove |
unset -f postinstall |
2426 |
unset postremove |
unset -f preremove |
2427 |
|
unset -f postremove |
2428 |
} |
} |
2429 |
|
|
2430 |
show_etc_update_mesg() { |
show_etc_update_mesg() { |