version 1.71, 2004/02/01 02:34:03 |
version 1.72, 2004/02/03 08:02:41 |
|
|
} |
} |
|
|
# |
# |
# |
|
# |
|
additem ssh_known_hosts "ssh known_hosts file update" |
|
do_ssh_known_hosts() |
|
{ |
|
failed=0 |
|
|
|
fs="${SRC_DIR}/etc/ssh/ssh_known_hosts" |
|
fd="${DEST_DIR}/etc/ssh/ssh_known_hosts" |
|
|
|
if [ ! -e "${fd}" ]; then |
|
if [ "${op}" = "check" ]; then |
|
msg "${fd} is missing" |
|
failed=1 |
|
else |
|
if ! cp "${fs}" "${fd}"; then |
|
failed=1 |
|
else |
|
msg "Copied ${fs} to ${fd}" |
|
fi |
|
fi |
|
else |
|
src_vers=`awk '/\\$NetBSD/ {print $4}' "${fs}"` |
|
dst_vers=`awk '/\\$NetBSD/ {print $4}' "${fd}"` |
|
if [ "${src_vers}" != "${dst_vers}" ]; then |
|
msg "${fd} version: ${dest_vers}" |
|
msg "${fs} version: ${src_vers}" |
|
failed=1 |
|
fi |
|
fi |
|
return ${failed} |
|
} |
|
|
|
# |
|
# wscons |
# wscons |
# |
# |
additem wscons "wscons configuration file update" |
additem wscons "wscons configuration file update" |