2004-06-30 12:31:45 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-07-02 02:31:18 +02:00
|
|
|
if [ -z "$OSVERSION" ]; then
|
|
|
|
if [ -x /sbin/sysctl ]; then
|
|
|
|
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
|
|
|
else
|
|
|
|
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
|
|
|
fi
|
|
|
|
fi
|
2004-06-30 12:31:45 +02:00
|
|
|
|
|
|
|
case $2 in
|
|
|
|
INSTALL)
|
2004-07-02 02:31:18 +02:00
|
|
|
if [ "$OSVERSION" -ge 492000 -a "$OSVERSION" -lt 500000 -o "$OSVERSION" -ge 502120 ]; then
|
|
|
|
echo "$1: Your base pkg_install tools are already up-to-date."
|
2004-06-30 12:31:45 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|