summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-16 20:45:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-16 20:45:49 +0000
commitda9de3716932be5164661d8426f7803bc7dcf26b (patch)
treeadb560fee3dc8c0e64b6f6619e603d23de47ab6d /etc
parent45870464c5b94ee87266f310186f40cc8bfdad4e (diff)
downloadpfsense-da9de3716932be5164661d8426f7803bc7dcf26b.zip
pfsense-da9de3716932be5164661d8426f7803bc7dcf26b.tar.gz
Bug fixes from databeetje
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index b931cbb..86dbda1 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -69,9 +69,9 @@ if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
/* config is on floppy disk for CD-ROM version */
$cfgdevice = $cfgpartition = "fd0";
$dmesg = `dmesg -a`;
- if(ereg("da0", $desg) == true) {
+ if(ereg("da0", $dmesg) == true) {
$cfgdevice = $cfgpartition = "da0" ;
- if (mwexec("/sbin/mount -r da0 /cf") <> 0) {
+ if (mwexec("/sbin/mount -r /dev/{$cfgdevice} /cf")) {
/* could not mount, fallback to floppy */
$cfgdevice = $cfgpartition = "fd0";
}
OpenPOWER on IntegriCloud