Fix APM's make_devs:

1. chown root:operator, chmod 660

2. Add /dev/apmctl as well as /dev/apm
This commit is contained in:
Nick Sayer 1999-10-12 15:00:06 +00:00
parent c981e3f992
commit 5277685400
2 changed files with 4 additions and 2 deletions

View File

@ -1114,7 +1114,8 @@ apm_attach(device_t dev)
sc->initialized = 1;
make_dev(&apm_cdevsw, 0, 0, 0, 0600, "apm");
make_dev(&apm_cdevsw, 0, 0, 5, 0660, "apm");
make_dev(&apm_cdevsw, 8, 0, 5, 0660, "apmctl");
return 0;
}

View File

@ -1114,7 +1114,8 @@ apm_attach(device_t dev)
sc->initialized = 1;
make_dev(&apm_cdevsw, 0, 0, 0, 0600, "apm");
make_dev(&apm_cdevsw, 0, 0, 5, 0660, "apm");
make_dev(&apm_cdevsw, 8, 0, 5, 0660, "apmctl");
return 0;
}