diff options
author | nsayer <nsayer@FreeBSD.org> | 1999-10-12 15:00:06 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 1999-10-12 15:00:06 +0000 |
commit | f30badfed853c4d64d535a6e45587ecaf8b7e5c3 (patch) | |
tree | 37e4c7e135311d4df6cf79448f8040d6a9dee58a | |
parent | 279a9ac2430d59262bc703a2a5ed7435f316e86d (diff) | |
download | FreeBSD-src-f30badfed853c4d64d535a6e45587ecaf8b7e5c3.zip FreeBSD-src-f30badfed853c4d64d535a6e45587ecaf8b7e5c3.tar.gz |
Fix APM's make_devs:
1. chown root:operator, chmod 660
2. Add /dev/apmctl as well as /dev/apm
-rw-r--r-- | sys/i386/apm/apm.c | 3 | ||||
-rw-r--r-- | sys/i386/bios/apm.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index a0c5b95..96860f6 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -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; } diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index a0c5b95..96860f6 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -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; } |