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).
This commit is contained in:
dteske 2013-09-07 03:27:13 +00:00
parent ef37ef8335
commit 3b61a48b9f

View File

@ -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