2011-09-03 23:26:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PKGS_REPO=/home/installs/PKGs
|
|
|
|
|
|
|
|
# Move all recently built packages into our packages repository
|
|
|
|
mkdir -p $PKGS_REPO
|
|
|
|
find /tmp -name \*.t\?z -maxdepth 1 -exec mv {} $PKGS_REPO \;
|
|
|
|
|
|
|
|
# Clean up said repository of obsolete (not installed) packages
|
|
|
|
cd $PKGS_REPO
|
|
|
|
for i in *.t?z; do [ ! -e /var/adm/packages/${i%.t?z} ] && rm $i; done
|
2012-03-02 16:11:09 +01:00
|
|
|
|
|
|
|
if [ -x /etc/rc.d/rc.avahidaemon -a -x /etc/rc.d/rc.avahidnsconfd ]; then
|
|
|
|
/etc/rc.d/rc.avahidaemon stop
|
|
|
|
/etc/rc.d/rc.avahidnsconfd stop
|
|
|
|
fi
|