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
This commit is contained in:
parent
e25dadb05d
commit
c7daa47b0e
@ -444,9 +444,11 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
enable = is_true(optarg);
|
enable = is_true(optarg);
|
||||||
|
all_info = 0;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
haltcpu = is_true(optarg);
|
haltcpu = is_true(optarg);
|
||||||
|
all_info = 0;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
batt_time = 1;
|
batt_time = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user