aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdconfig/examples/add_some_packages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdconfig/examples/add_some_packages.sh')
-rwxr-xr-xusr.sbin/bsdconfig/examples/add_some_packages.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/bsdconfig/examples/add_some_packages.sh b/usr.sbin/bsdconfig/examples/add_some_packages.sh
new file mode 100755
index 000000000000..b9bb8418610b
--- /dev/null
+++ b/usr.sbin/bsdconfig/examples/add_some_packages.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# This sample installs a short list of packages from the main HTTP site.
+#
+[ "$_SCRIPT_SUBR" ] || . /usr/share/bsdconfig/script.subr || exit 1
+nonInteractive=1
+_httpPath=http://pkg.freebsd.org
+mediaSetHTTP
+mediaOpen
+for package in wget bash rsync; do
+ packageAdd
+done