Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/etcupdate/etcupdate.sh
Show First 20 Lines • Show All 1,731 Lines • ▼ Show 20 Lines | |||||
# The path of the "warnings" file that accumulates warning notes from an update. | # The path of the "warnings" file that accumulates warning notes from an update. | ||||
WARNINGS=$WORKDIR/warnings | WARNINGS=$WORKDIR/warnings | ||||
# Use $EDITOR for resolving conflicts. If it is not set, default to vi. | # Use $EDITOR for resolving conflicts. If it is not set, default to vi. | ||||
EDITOR=${EDITOR:-/usr/bin/vi} | EDITOR=${EDITOR:-/usr/bin/vi} | ||||
# Files that need to be updated before installworld. | # Files that need to be updated before installworld. | ||||
PREWORLD_FILES="etc/master.passwd etc/group" | PREWORLD_FILES="lib/libc/gen/master.passwd lib/libc/gen/group" | ||||
# If on an older tree, use it instead. Delete after 13.0. | |||||
[ -f ${SRCDIR}/etc/master.passwd ] && PREWORLD_FILES="etc/master.passwd etc/group" | |||||
# Handle command-specific argument processing such as complaining | # Handle command-specific argument processing such as complaining | ||||
# about unsupported options. Since the configuration file is always | # about unsupported options. Since the configuration file is always | ||||
# included, do not complain about extra command line arguments that | # included, do not complain about extra command line arguments that | ||||
# may have been set via the config file rather than the command line. | # may have been set via the config file rather than the command line. | ||||
case $command in | case $command in | ||||
update) | update) | ||||
if [ -n "$rerun" -a -n "$tarball" ]; then | if [ -n "$rerun" -a -n "$tarball" ]; then | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |