base-files: sysupgrade: fix error message and typo
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Thu, 20 Oct 2022 02:56:22 +0000 (23:56 -0300)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 22 Feb 2024 21:14:54 +0000 (22:14 +0100)
Some minor error message and comment fixes.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
package/base-files/files/sbin/sysupgrade

index 43e129e1d77ca00bc0eea41903c788db2eab9643..e6ce3bd183c39b80cd7f5bac1b2cbfb417f8ff7b 100755 (executable)
@@ -203,7 +203,7 @@ add_overlayfiles() {
 
 if [ $SAVE_OVERLAY = 1 ]; then
        [ ! -d /overlay/upper/etc ] && {
-               echo "Cannot find '/overlay/upper/etc', required for '-c'" >&2
+               echo "Cannot find '/overlay/upper/etc', required for '-c' or '-o'" >&2
                exit 1
        }
        sysupgrade_init_conffiles="add_overlayfiles"
@@ -246,7 +246,7 @@ do_save_conffiles() {
                                ask_bool 0 "Abort" && exit
                        }
 
-               # Format: pkg-name<TAB>{rom,overlay,unkown}
+               # Format: pkg-name<TAB>{rom,overlay,unknown}
                # rom is used for pkgs in /rom, even if updated later
                find /usr/lib/opkg/info -name "*.control" \( \
                        \( -exec test -f /rom/{} \; -exec echo {} rom \; \) -o \