diff options
Diffstat (limited to 'src/cmd/opkg.sh')
-rw-r--r-- | src/cmd/opkg.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh index cb592c9..93ab7aa 100644 --- a/src/cmd/opkg.sh +++ b/src/cmd/opkg.sh @@ -40,7 +40,9 @@ cmd_opkg_main() dev='' if is_block "${root}"; then dev="${root}" - root="$(block_mount "${dev}")" + if ! root="$(block_mount "${dev}")"; then + return 2 + fi fi first_arg=true |