summaryrefslogtreecommitdiffstats
path: root/src/cmd/opkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/opkg.sh')
-rw-r--r--src/cmd/opkg.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index 218fb2d..5a48fb8 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -87,9 +87,7 @@ cmd_opkg_main()
cmd_opkg_fini
session_end
- if [ "x${dev}" != 'x' ]; then
- block_umount "${root}"
- fi
+ [ "x${dev}" != 'x' ] && block_umount "${root}"
}
cmd_opkg_fini()