diff options
author | sanpei <sanpei@FreeBSD.org> | 2000-08-29 00:42:31 +0000 |
---|---|---|
committer | sanpei <sanpei@FreeBSD.org> | 2000-08-29 00:42:31 +0000 |
commit | 1ebed5b98449c502c4a8eacff9f0797900afbc1a (patch) | |
tree | 97f62fb8fec8efb658b3fa3a1dda5ee9881e5118 /release/sysinstall | |
parent | f1f515c99757cd2ae37daa5646d00d260b60e939 (diff) | |
download | FreeBSD-src-1ebed5b98449c502c4a8eacff9f0797900afbc1a.zip FreeBSD-src-1ebed5b98449c502c4a8eacff9f0797900afbc1a.tar.gz |
set pccard insertion beep type in install floppy.
When we use PC-Card as install media, it is a patch
to tell with beep about whether we were able to
recognize it well.
Reviewed by: jkh, imp
Tested by: Kenji Yamada <kyamada@ISI.EDU>
Diffstat (limited to 'release/sysinstall')
-rw-r--r-- | release/sysinstall/pccard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/sysinstall/pccard.c b/release/sysinstall/pccard.c index bce9231e..dbb69ce 100644 --- a/release/sysinstall/pccard.c +++ b/release/sysinstall/pccard.c @@ -134,6 +134,7 @@ pccardInitialize(void) int t; int i; int pcic_mem = 0xd0000; + int beep_newstat; char card_device[16]; char *card_irq = ""; char temp[256]; @@ -222,6 +223,14 @@ pccardInitialize(void) restorescr(w); return; } + beep_newstat = 1; + if (ioctl(fd, PIOCSBEEP, &beep_newstat) < 0) { + msgNotify("Warning: unable to set pccard insertion beep type for %s", + card_device); + restorescr(w); + return; + } + } strcpy(pccardd_cmd, "/stand/pccardd "); |