Skip to content

Commit

Permalink
nanobsd: Fix typos
Browse files Browse the repository at this point in the history
Fix a number of typos in the code or comments.
Files under dhcpd, embedded, pcengines, and rescue were intentionally
omitted. These directories will be reviewed at a later date.

PR:		269884
Reviewed by:	imp, zlei
Approved by:	emaste (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D47587
  • Loading branch information
jlduran committed Nov 16, 2024
1 parent 0f7b0db commit 12cbad9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tools/tools/nanobsd/Files/root/save_cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ do
# Add to cfg (y/n/i)?
# y) -> save this file in /cfg
# n) -> do not save this file in /cfg for current script invocation ONLY
# i) -> add file to ignore list (/cfg/.ignore hiereachy) and never save
# i) -> add file to ignore list (/cfg/.ignore hierarchy) and never save
# try to add this file to /cfg.
#
# touch is used to add files to /cfg to keep the script flow straight and easy
Expand Down
10 changes: 5 additions & 5 deletions tools/tools/nanobsd/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ run_late_customize ( ) (
# a user's cfg file would override this.
#
fixup_before_diskimage ( ) (
# Run the deduplication script that takes the matalog journal and
# Run the deduplication script that takes the metalog journal and
# combines multiple entries for the same file (see source for
# details). We take the extra step of removing the size keywords. This
# script, and many of the user scripts, copies, appeneds and otherwise
# script, and many of the user scripts, copies, appends and otherwise
# modifies files in the build, changing their sizes. These actions are
# impossible to trap, so go ahead remove the size= keyword. For this
# narrow use, it doesn't buy us any protection and just gets in the way.
Expand Down Expand Up @@ -814,7 +814,7 @@ cust_pkgng ( ) (
CR "${PKGCMD} add /_.p/${_NANO_PKG_PACKAGE}"

(
# Expand any glob characters in pacakge list
# Expand any glob characters in package list
cd "${NANO_PACKAGE_DIR}"
_PKGS=`find ${NANO_PACKAGE_LIST} -not -name "${_NANO_PKG_PACKAGE}" -print | sort | uniq`

Expand Down Expand Up @@ -905,7 +905,7 @@ usage ( ) {
# Setup and Export Internal variables
#

export_var ( ) { # Don't wawnt a subshell
export_var ( ) { # Don't want a subshell
var=$1
# Lookup value of the variable.
eval val=\$$var
Expand All @@ -914,7 +914,7 @@ export_var ( ) { # Don't wawnt a subshell
}

# Call this function to set defaults _after_ parsing options.
# dont want a subshell otherwise variable setting is thrown away.
# don't want a subshell otherwise variable setting is thrown away.
set_defaults_and_export ( ) {
: ${NANO_OBJ:=/usr/obj/nanobsd.${NANO_NAME}${NANO_LAYOUT:+.${NANO_LAYOUT}}}
: ${MAKEOBJDIRPREFIX:=${NANO_OBJ}}
Expand Down
2 changes: 1 addition & 1 deletion tools/tools/nanobsd/fill_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ for i in `cat "$PL"` ; do
if [ -f "$NANO_PKG_DUMP/$i.pkg" ] ; then
$COPY "$NANO_PKG_DUMP/$i.pkg" "$NANO_PKG_DIR"
else
echo "Package $i misssing in $NANO_PKG_DUMP" 1>&2
echo "Package $i missing in $NANO_PKG_DUMP" 1>&2
exit 1
fi
done
Expand Down
2 changes: 1 addition & 1 deletion tools/tools/nanobsd/mtree-dedup.awk
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function mtree_from_kvs(path, kvs)
return lv;
}

# Parse the mtree line into path + KVs. Use a sentinal value
# Parse the mtree line into path + KVs. Use a sentinel value
# for a bare keyword, which is extremely unlikely to be used
# for real.
function line2kv(kvs, str)
Expand Down

0 comments on commit 12cbad9

Please sign in to comment.