summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4e9bb94..ac0c7f1 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);
OpenPOWER on IntegriCloud