summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-11-06 22:05:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-11-06 22:05:20 +0000
commit440407e65cd6ecb4652ec038120318ff815bcbdd (patch)
treed162c3d0a3fd324463bb869100754945dc08c243 /usr.sbin
parent22bc4f4c7ddd6ce5775b6b9c36dcb36521655a0a (diff)
handle +DISPLAY
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/pkg_add6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index 8dfffe0bad3..e3eb8719915 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.10 2003/11/06 18:42:01 espie Exp $
+# $OpenBSD: pkg_add,v 1.11 2003/11/06 22:05:19 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -365,6 +365,10 @@ sub really_add($)
}
}
add_installed($pkgname);
+ if ($plist->has(DISPLAY)) {
+ my $pager = $ENV{'PAGER'} || "/usr/bin/more";
+ system($pager, $dest.DISPLAY);
+ }
}
my @todo = (@ARGV);