#!/bin/sh # # Created 1999-10-08 by xamu (Andreas Mueller), ISK. # if [ "$1" = "start" ]; then if tar --version >/dev/null 2>&1; then TAR="tar -xv --atime-preserve --preserve-permissions --same-owner -f" # GNU tar else TAR="tar -xvf" # Something fi cd / for ARCHIVE in /iav/iavcp/`domainname`/`uname -n`*; do if [ -f $ARCHIVE ]; then echo $0: Doing $TAR $ARCHIVE... $TAR $ARCHIVE echo $0: Done. Removing $ARCHIVE... rm -f $ARCHIVE echo $0: Done. fi done if [ -d /etc/iavcp.d ]; then for FILE in /etc/iavcp.d/*; do echo $0: Executing $FILE... $FILE echo $0: Removing $FILE... rm -f $FILE echo $0: Done. done echo $0: Removing /etc/iavcp.d... if ! rmdir /etc/iavcp.d >/dev/null 2>&1; then echo $0: WARNING: Directory /etc/iavcp.d is still there! else echo $0: Done. fi fi fi