version 1.1.1.1.2.1, 2011/07/19 21:54:27
|
version 1.4, 2014/09/15 19:06:42
|
Line 8
|
Line 8
|
# $Id$ |
# $Id$ |
# |
# |
|
|
|
if [ -n "$1" ]; then |
|
cd config |
|
ln -sf $1 rc.elwix |
|
cd - |
|
fi |
|
|
[ -r ./config/rc.elwix ] && . ./config/rc.elwix |
[ -r ./config/rc.elwix ] && . ./config/rc.elwix |
if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then |
if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then |
echo |
echo |
Line 30 if [ "${USER}" != "root" ]; then
|
Line 36 if [ "${USER}" != "root" ]; then
|
exit 1 |
exit 1 |
fi |
fi |
|
|
|
clean_pkgsrc() |
|
{ |
|
echo "+++ Clean ELWIX pkgsrc ..." |
|
# MNTEXISTS=$(mount | awk -vpkgsrc="${PKGSRC_DIR}" -vdstmnt="${WORLD}/usr/pkgsrc" \ |
|
# '($1 == pkgsrc && $3 == dstmnt) { printf("YES"); }') |
|
# if [ "${MNTEXISTS}" != "YES" ]; then |
|
# umount ${WORLD}/usr/pkgsrc |
|
# fi |
|
|
|
rm -f /elwix ${WORLD}/usr/pkgsrc |
|
echo "+++ Erased pkgsrc helper dirs!" |
|
} |
|
|
clean_init() |
clean_init() |
{ |
{ |
echo "+++ Clean ELWIX Projects ..." |
echo "+++ Clean ELWIX Projects ..." |
echo -n "Erase *ALL* builded ELWIX projects [NO/yes]? " |
echo -n "Erase *ALL* builded ELWIX projects [NO/yes]? " |
read LINE |
read LINE |
if [ X"$LINE" = X"yes" ]; then |
if [ X"$LINE" = X"yes" ]; then |
chflags -Rf noschg ${TOPDIR} | clean_pkgsrc |
| |
| chflags -Rf noschg,nosunlink ${TOPDIR} |
rm -rf $TOPDIR |
rm -rf $TOPDIR |
mkdir -p $TOPDIR |
mkdir -p $TOPDIR |
echo "+++ Erased *ALL* builded ELWIX projects!" |
echo "+++ Erased *ALL* builded ELWIX projects!" |