summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-08 14:23:25 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-08 14:23:25 (EDT)
commit9b9c070eccaec8e76fba9d5ce45592ddc0ab3429 (patch)
treee179bce741f2b01d73e5ff36d21ccf73107e07bc
parente3055f26642dd356b91d852a8e32a938e9d77c36 (diff)
miniprokit.sh: Delete .opk files sooner.
-rwxr-xr-xminiprokit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/miniprokit.sh b/miniprokit.sh
index 0a32eee..abb7710 100755
--- a/miniprokit.sh
+++ b/miniprokit.sh
@@ -203,8 +203,6 @@ cmd_install()
configure_pkgs "${root}"
- rm "${root}/var/cache/opkg/archives/"*.opk
-
[ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc"
[ -r /etc/hostname ] && cp /etc/hostname "${root}/etc"
}
@@ -272,6 +270,8 @@ get_pkg()
fi
printf 'Installed-Time: %s\n\n' "$(date '+%s')" >&3
exec 3>&-
+
+ rm -f "${root}/${filename}"
}
configure_pkgs()