Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- . /usr/share/bsdconfig/script.subr
- ############################################################ CONFIGURATION
- #debug=1
- nonInteractive=1
- #
- # Do what?
- #
- #packages_to_fetch="beav-1.40.18_1"
- # or
- packages_to_add="beav-1.40.18_1"
- ############################################################ SCRIPT
- # For downloading stuff...
- if [ "$packages_to_fetch" ]; then
- _ftpPath=ftp://ftp-archive.freebsd.org
- mediaSetFTP
- mediaOpen
- for pkg in $packages_to_fetch; do
- f_device_get media packages/All/$pkg.tbz \
- > /tmp/packages/All/$pkg.tbz
- done
- elif [ "$packages_to_add" ]; then
- _directoryPath=/tmp
- mediaSetDirectory
- for pkg in $packages_to_add; do
- f_mustberoot_init
- f_package_add $pkg
- done
- fi
- ###############################################################################
- # END
- ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement