aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg/pkg.c
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2013-10-30 10:17:16 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2013-10-30 10:17:16 +0000
commitc3e8a27aab89870e63bffb02b9fb927c05761645 (patch)
tree5372dba08eb5352a2595b69516550357e8c77ba5 /usr.sbin/pkg/pkg.c
parent82b90729fb1e71c66af2664f7c178f1c3e01fc62 (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg/pkg.c')
-rw-r--r--usr.sbin/pkg/pkg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index 4e9bb947be03f..ac0c7f1c1b46a 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -951,6 +951,15 @@ main(__unused int argc, char *argv[])
if (bootstrap_pkg() != 0)
exit(EXIT_FAILURE);
config_finish();
+
+ if (argv[1] != NULL && strcmp(argv[1], "bootstrap") == 0)
+ exit(EXIT_SUCCESS);
+ } else {
+ if (argv[1] != NULL && strcmp(argv[1], "bootstrap") == 0) {
+ printf("pkg already bootstrapped at %s\n",
+ pkgpath);
+ exit(EXIT_SUCCESS);
+ }
}
execv(pkgpath, argv);