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:
nsayer 1999-10-12 15:00:06 +00:00
parent 8ef0f13107
commit 2d328cd6b7
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;
}