Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
2862298e
Commit
2862298e
authored
Dec 09, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: we shouldn't touch this here
parent
16c094a8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
6 deletions
+3
-6
trigger_initial_wizard
cf/conf/trigger_initial_wizard
+0
-0
config.xml
usr/local/etc/config.xml
+0
-0
config.inc
usr/local/etc/inc/config.inc
+1
-1
config.lib.inc
usr/local/etc/inc/config.lib.inc
+1
-1
globals.inc
usr/local/etc/inc/globals.inc
+0
-1
rc
usr/local/etc/rc
+0
-2
rc.cdrom
usr/local/etc/rc.cdrom
+1
-1
No files found.
cf/conf/trigger_initial_wizard
deleted
100644 → 0
View file @
16c094a8
conf.default
/config.xml
→
usr/local/etc
/config.xml
View file @
2862298e
File moved
usr/local/etc/inc/config.inc
View file @
2862298e
...
...
@@ -178,7 +178,7 @@ else if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
restore_backup
(
"/cf/conf/backup/
{
$last_backup
}
"
);
}
else
{
log_error
(
gettext
(
"No config.xml or config backups found, resetting to factory defaults."
));
restore_backup
(
'/
conf.default
/config.xml'
);
restore_backup
(
'/
usr/local/etc
/config.xml'
);
}
}
...
...
usr/local/etc/inc/config.lib.inc
View file @
2862298e
...
...
@@ -593,7 +593,7 @@ function reset_factory_defaults($lock = false) {
unlink_if_exists
(
$g
[
'tmp_path'
]
.
"/config.cache"
);
/* copy default configuration */
copy
(
"
{
$g
[
'conf_default_path'
]
}
/config.xml"
,
"
{
$g
[
'conf_path'
]
}
/config.xml"
);
copy
(
"
/usr/local/etc
/config.xml"
,
"
{
$g
[
'conf_path'
]
}
/config.xml"
);
disable_security_checks
();
...
...
usr/local/etc/inc/globals.inc
View file @
2862298e
...
...
@@ -51,7 +51,6 @@ $g = array(
"tmp_path"
=>
"/tmp"
,
"conf_path"
=>
"/conf"
,
"ftmp_path"
=>
"/ftmp"
,
"conf_default_path"
=>
"/conf.default"
,
"cf_path"
=>
"/cf"
,
"cf_conf_path"
=>
"/cf/conf"
,
"www_path"
=>
"/usr/local/www"
,
...
...
usr/local/etc/rc
View file @
2862298e
...
...
@@ -211,13 +211,11 @@ if [ "$PLATFORM" = "cdrom" ] ; then
/bin/mkdir /tmp/unionfs/sbin
/bin/mkdir /tmp/unionfs/bin
/bin/mkdir /tmp/unionfs/boot
/bin/mkdir /tmp/unionfs/confdefault
/sbin/mount_unionfs /tmp/unionfs/usr /usr/
/sbin/mount_unionfs /tmp/unionfs/root /root/
/sbin/mount_unionfs /tmp/unionfs/bin /bin/
/sbin/mount_unionfs /tmp/unionfs/sbin /sbin/
/sbin/mount_unionfs /tmp/unionfs/boot /boot/
/sbin/mount_unionfs /tmp/unionfs/confdefault /conf.default/
echo
"done."
fi
...
...
usr/local/etc/rc.cdrom
View file @
2862298e
...
...
@@ -20,7 +20,7 @@ if [ ! -f /conf/config.xml ]; then
device
=
$(
mdconfig
-a
-t
malloc
-s
${
partsize
}
)
newfs /dev/
${
device
}
>
/dev/null 2>&1
mount /dev/
${
device
}
/conf
cp
/
conf.default/
*
/conf
cp
/
usr/local/etc/config.xml
/conf
mount_nullfs /conf /cf/conf
echo
"done."
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment