17 lines
429 B
Bash
17 lines
429 B
Bash
#!/bin/sh
|
|
if [ -z $2 ]; then
|
|
exit 0
|
|
fi
|
|
if [ $2 != "POST-DEINSTALL" ]; then
|
|
echo "!!! This script is for post-deinstallation only."; \
|
|
exit 0
|
|
fi
|
|
echo "==> Post-deinstallation cleanup:"
|
|
echo " Check the following directories to clean X-Bone related files:"
|
|
dirs="/etc/xbone /etc/named/xbone /usr/local/etc/xbone /usr/local/xbone /usr/local/www/xbone"
|
|
for p in $dirs; do
|
|
if [ -d $p ]; then
|
|
echo " $p"
|
|
fi
|
|
done
|
|
|