mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Comments and fit to 80-columns.
This commit is contained in:
parent
ae61f4dda6
commit
d1bb7cca77
1 changed files with 11 additions and 10 deletions
|
|
@ -107,11 +107,11 @@ f_startup_rcvar_map()
|
|||
)"
|
||||
|
||||
#
|
||||
# Calculate a digest given the checksums of all dependencies (scripts and
|
||||
# the defaults file). This digest will be used to determine if an on-disk
|
||||
# global persistant cache file (containg this digest on the first line)
|
||||
# is valid and can be used to quickly populate the cache value for
|
||||
# immediate return.
|
||||
# Calculate a digest given the checksums of all dependencies (scripts
|
||||
# and the defaults file). This digest will be used to determine if an
|
||||
# on-disk global persistant cache file (containg this digest on the
|
||||
# first line) is valid and can be used to quickly populate the cache
|
||||
# value for immediate return.
|
||||
#
|
||||
local rc_script_list_digest
|
||||
rc_script_list_digest=$( cd "$ETC_RC_D" &&
|
||||
|
|
@ -131,11 +131,12 @@ f_startup_rcvar_map()
|
|||
read digest rest_ignored
|
||||
|
||||
#
|
||||
# If the stored digest matches the calculated-one
|
||||
# populate the in-memory cache from the on-disk
|
||||
# cache and provide success exit status.
|
||||
# If the stored digest matches the calculated-
|
||||
# one populate the in-memory cache from the on-
|
||||
# disk cache and provide success exit status.
|
||||
#
|
||||
if [ "$digest" = "$rc_script_list_digest" ]; then
|
||||
if [ "$digest" = "$rc_script_list_digest" ]
|
||||
then
|
||||
cat
|
||||
exit $SUCCESS
|
||||
else
|
||||
|
|
@ -151,7 +152,7 @@ f_startup_rcvar_map()
|
|||
echo "$STARTUP_RCVAR_MAP"
|
||||
return $SUCCESS
|
||||
fi
|
||||
# Otherwise, fall-through to create in-memory cache from scratch
|
||||
# Otherwise, fall-thru to create in-memory cache from scratch
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue