From c259f4f6b15defd515ec0050360eeaac48182a4d Mon Sep 17 00:00:00 2001 From: sobomax Date: Fri, 26 Jul 2002 13:43:47 +0000 Subject: Don't dump all information about apm when only asked to enable/disable apm functions (-e and -h switches). This should make apm(8) self-consistent, as for example -d enable|disable doesn't dump such info. MFC after: 5 days --- usr.sbin/apm/apm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/apm') diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index 6cfd86f..2517ee5 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -444,9 +444,11 @@ main(int argc, char *argv[]) break; case 'e': enable = is_true(optarg); + all_info = 0; break; case 'h': haltcpu = is_true(optarg); + all_info = 0; break; case 't': batt_time = 1; -- cgit v1.1