summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:34:24 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:34:24 (EDT)
commit5ae28cbfcf6892a908d88a8d14ffeb85a6431904 (patch)
tree5172b8ef9b24404b42b9fafb07d545cdb8644fd1 /src
parente63eb70b9b77322747c3945f9fb467b59d5a9391 (diff)
src/cmd/opkg.sh: Make a function "static"
Diffstat (limited to 'src')
-rw-r--r--src/cmd/opkg.sh8
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}"