summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 9b9d6e3..f23d70b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -55,6 +55,14 @@ if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
if (strstr($g['platform'], "cdrom")) {
/* config is on floppy disk for CD-ROM version */
$cfgdevice = $cfgpartition = "fd0";
+ $dmesg = `dmesg -a`;
+ if(ereg("da0", $desg) == true) {
+ $cfgdevice = $cfgpartition = "da0" ;
+ if (mwexec("/sbin/mount -r da0 /cf") <> 0) {
+ /* could not mount, fallback to floppy */
+ $cfgdevice = $cfgpartition = "fd0";
+ }
+ }
$cfgfstype = "msdos";
} else {
/* probe kernel known disks until we find one with config.xml */
OpenPOWER on IntegriCloud