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
69ad2a3f
Commit
69ad2a3f
authored
Jan 16, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
globals: thin out a bit more
parent
1cb6d444
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
config.lib.inc
src/etc/inc/config.lib.inc
+4
-1
globals.inc
src/etc/inc/globals.inc
+0
-4
upgrade_config.inc
src/etc/inc/upgrade_config.inc
+2
-2
rc.initial.reboot
src/etc/rc.initial.reboot
+1
-1
No files found.
src/etc/inc/config.lib.inc
View file @
69ad2a3f
<?php
/*
Copyright (C) 2015 Franco Fichtner <franco@opnsense.org>
Copyright (C) 2015
-2016
Franco Fichtner <franco@opnsense.org>
Ported from config.inc by Erik Kristensen
Copyright (C) 2004-2010 Scott Ullrich
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
...
...
@@ -29,6 +29,9 @@
POSSIBILITY OF SUCH DAMAGE.
*/
openlog
(
'opnsense'
,
LOG_ODELAY
,
LOG_USER
);
register_shutdown_function
(
'closelog'
);
require_once
(
"globals.inc"
);
require_once
(
"xmlparse.inc"
);
require_once
(
"crypt.inc"
);
...
...
src/etc/inc/globals.inc
View file @
69ad2a3f
...
...
@@ -29,15 +29,11 @@
global
$g
;
openlog
(
'opnsense'
,
LOG_ODELAY
,
LOG_USER
);
register_shutdown_function
(
'closelog'
);
$g
=
array
(
"factory_shipped_username"
=>
"root"
,
"factory_shipped_password"
=>
"opnsense"
,
"dhcpd_chroot_path"
=>
"/var/dhcpd"
,
"unbound_chroot_path"
=>
"/var/unbound"
,
"admin_group"
=>
"admins"
,
"product_name"
=>
"OPNsense"
,
"product_website"
=>
"https://opnsense.org"
,
"product_email"
=>
"project@opnsense.org"
,
...
...
src/etc/inc/upgrade_config.inc
View file @
69ad2a3f
...
...
@@ -1369,7 +1369,7 @@ function upgrade_048_to_049() {
/* work around broken gid assignments */
$config
[
'system'
][
'nextgid'
]
=
2000
;
foreach
(
$config
[
'system'
][
'group'
]
as
&
$group
)
{
if
(
$group
[
'name'
]
==
$g
[
'admin_group'
]
)
if
(
$group
[
'name'
]
==
'admins'
)
$group
[
'gid'
]
=
1999
;
else
$group
[
'gid'
]
=
$config
[
'system'
][
'nextgid'
]
++
;
...
...
@@ -1393,7 +1393,7 @@ function upgrade_048_to_049() {
/* reset group scope information */
foreach
(
$config
[
'system'
][
'group'
]
as
&
$group
)
if
(
$group
[
'name'
]
!=
$g
[
'admin_group'
]
)
if
(
$group
[
'name'
]
!=
'admins'
)
$group
[
'scope'
]
=
"user"
;
/* insert new all group */
...
...
src/etc/rc.initial.reboot
View file @
69ad2a3f
...
...
@@ -27,7 +27,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"
globals
.inc"
);
require_once
(
"
config.lib
.inc"
);
require_once
(
"util.inc"
);
require_once
(
"system.inc"
);
...
...
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