Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- . /usr/share/bsdconfig/script.subr
- nonInteractive=1
- TMPDIR=/tmp
- if [ ! -e "$TMPDIR/packages/INDEX" ]; then
- [ -d "$TMPDIR/packages" ] || mkdir -p "$TMPDIR/packages" || exit 1
- _ftpPath=ftp://ftp-archive.freebsd.org
- mediaSetFTP
- mediaOpen
- f_show_info "Downloading packages/INDEX from %s" "$_ftpPath"
- f_device_get media packages/INDEX > $TMPDIR/packages/INDEX
- mediaClose
- fi
- _directoryPath=$TMPDIR
- mediaSetDirectory
- configPackages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement