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:
parent
8ef0f13107
commit
2d328cd6b7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user