summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-09-07 03:27:13 +0000
committerdteske <dteske@FreeBSD.org>2013-09-07 03:27:13 +0000
commit3b61a48b9f5477a16200438661adf4f782eec118 (patch)
tree37cbbb91126e1f6ed88c347b223b0c6ac9945a33 /usr.sbin
parentef37ef83350cbc5080740b4ed9597ea59d058a59 (diff)
downloadFreeBSD-src-3b61a48b9f5477a16200438661adf4f782eec118.zip
FreeBSD-src-3b61a48b9f5477a16200438661adf4f782eec118.tar.gz
Remove unnecessary mediaClose (FTP operations are done with either ftp(1)
or fetch(1), neither of which are stateful, compared to how sysinstall(8) did FTP operations, maintaining an open session until mediaClose).
Diffstat (limited to 'usr.sbin')
-rwxr-xr-xusr.sbin/bsdconfig/examples/browse_packages.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/examples/browse_packages.sh b/usr.sbin/bsdconfig/examples/browse_packages.sh
index 18ab93b..1deb562 100755
--- a/usr.sbin/bsdconfig/examples/browse_packages.sh
+++ b/usr.sbin/bsdconfig/examples/browse_packages.sh
@@ -19,7 +19,6 @@ if [ ! -e "$TMPDIR/packages/INDEX" ]; then
mediaOpen
f_show_info "Downloading packages/INDEX from\n %s" "$_ftpPath"
f_device_get media packages/INDEX > $TMPDIR/packages/INDEX
- mediaClose
fi
_directoryPath=$TMPDIR
mediaSetDirectory
OpenPOWER on IntegriCloud