Lines 30-39
Link Here
|
30 |
# $FreeBSD$ |
30 |
# $FreeBSD$ |
31 |
|
31 |
|
32 |
#### Usage function -- called from command-line handling code. |
32 |
#### Usage function -- called from command-line handling code. |
33 |
|
|
|
34 |
# Usage instructions. Options not listed: |
35 |
# --debug -- don't filter output from utilities |
36 |
# --no-stats -- don't show progress statistics while fetching files |
37 |
usage () { |
33 |
usage () { |
38 |
cat <<EOF |
34 |
cat <<EOF |
39 |
usage: `basename $0` [options] command ... [path] |
35 |
usage: `basename $0` [options] command ... [path] |
Lines 52-57
Options:
Link Here
|
52 |
(default: update.FreeBSD.org) |
48 |
(default: update.FreeBSD.org) |
53 |
-t address -- Mail output of cron command, if any, to address |
49 |
-t address -- Mail output of cron command, if any, to address |
54 |
(default: root) |
50 |
(default: root) |
|
|
51 |
-v verbosity -- Change the amout of information output during |
52 |
fetch or upgrade commands. Can be set to either |
53 |
debug, nostats, or stats |
54 |
(default: stat) |
55 |
--debug -- Don't filter output from utilities |
56 |
--no-stats -- Don't show progress statistics while fetching files |
55 |
--not-running-from-cron |
57 |
--not-running-from-cron |
56 |
-- Run without a tty, for use by automated tools |
58 |
-- Run without a tty, for use by automated tools |
57 |
--currently-running release |
59 |
--currently-running release |
Lines 668-683
fetchupgrade_check_params () {
Link Here
|
668 |
PATCHDIR=${RELNUM}/${ARCH}/bp |
670 |
PATCHDIR=${RELNUM}/${ARCH}/bp |
669 |
|
671 |
|
670 |
# Disallow upgrade from a version that is not `-RELEASE` |
672 |
# Disallow upgrade from a version that is not `-RELEASE` |
671 |
if ! echo "${RELNUM}" | grep -qE -- "-RELEASE$"; then |
673 |
case ${RELNUM} in *-RELEASE | *-BETA* | *-RC* ) |
672 |
echo -n "`basename $0`: " |
674 |
echo -n "`basename $0`: " |
673 |
cat <<- EOF |
675 |
cat <<- EOF |
674 |
Cannot upgrade from a version that is not a '-RELEASE' using `basename $0`. |
676 |
Cannot upgrade from a version that is none of '-RELEASE', '-BETA' |
675 |
Instead, FreeBSD can be directly upgraded by source or upgraded to a |
677 |
or '-RC' using `basename $0`. Instead, FreeBSD can be directly |
676 |
RELEASE/RELENG version prior to running `basename $0`. |
678 |
upgraded by source or upgraded to a RELEASE/RELENG version |
|
|
679 |
prior to running `basename $0`. |
677 |
EOF |
680 |
EOF |
678 |
echo "System version: ${RELNUM}" |
681 |
echo "System version: ${RELNUM}" |
679 |
exit 1 |
682 |
exit 1 |
680 |
fi |
683 |
;; |
|
|
684 |
esac |
681 |
|
685 |
|
682 |
# Figure out what directory contains the running kernel |
686 |
# Figure out what directory contains the running kernel |
683 |
BOOTFILE=`sysctl -n kern.bootfile` |
687 |
BOOTFILE=`sysctl -n kern.bootfile` |