mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
22 lines
346 B
Bash
22 lines
346 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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
|
|
|
|
case $2 in
|
|
INSTALL)
|
|
if [ %%OSVERSIONCHK%% ]; then
|
|
echo "$1: Your base pkg_install tools are already up-to-date."
|
|
exit 1
|
|
fi
|
|
;;
|
|
esac
|