diff options
-rw-r--r-- | src/cmd/opkg.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh index 0da1a8b..62aa788 100644 --- a/src/cmd/opkg.sh +++ b/src/cmd/opkg.sh @@ -20,7 +20,7 @@ cmd_opkg_opks= -cmd_opkg_fini() +_cmd_opkg_fini() { case "${cmd_opkg_opks}" in *[!\ ]*) @@ -97,15 +97,15 @@ cmd_opkg_main() return 2 fi - if ! session_begin "${root}" . cmd_opkg_fini false; then - cmd_opkg_fini + if ! session_begin "${root}" . _cmd_opkg_fini false; then + _cmd_opkg_fini [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi session_exec opkg "${@}" - cmd_opkg_fini + _cmd_opkg_fini session_end [ "x${dev}" != 'x' ] && block_umount "${root}" |