diff options
author | jkim <jkim@FreeBSD.org> | 2006-01-27 21:00:31 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2006-01-27 21:00:31 +0000 |
commit | 2696c9b917d23fe657d74ed0da554cc778a6a7df (patch) | |
tree | 779e8f0fda55c6dc317a4e9f4ac1b1da15d6a532 /usr.sbin/sade/sade.h | |
parent | 40c7d835b9c0f0875af9bbcd1a9f8e838f5a3ca1 (diff) | |
download | FreeBSD-src-2696c9b917d23fe657d74ed0da554cc778a6a7df.zip FreeBSD-src-2696c9b917d23fe657d74ed0da554cc778a6a7df.tar.gz |
Add `mediaOpen' function. This function mounts selected media device.
For example, you can dynamically generate and load configuration file
depending on the hardware configuration with the following template:
mediaSetCDROM
mediaOpen
command='/dist/rescue/sh /dist/scripts/install.sh'
system
mediaClose
configFile=/tmp/generated.cfg
loadConfig
Now we have full access to files on the media before installation begins.
Diffstat (limited to 'usr.sbin/sade/sade.h')
-rw-r--r-- | usr.sbin/sade/sade.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index d099cca..3dfc048 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -702,6 +702,7 @@ extern u_char default_scrnmap[]; /* media.c */ extern char *cpioVerbosity(void); +extern int mediaOpen(void); extern void mediaClose(void); extern int mediaTimeout(void); extern int mediaSetCDROM(dialogMenuItem *self); |