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
f21a4756
Commit
f21a4756
authored
Apr 24, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: rejoice for varrun_path is gone
parent
ab7cec05
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
15 deletions
+21
-15
globals.inc
src/etc/inc/globals.inc
+0
-1
gmirror_status_check.php
src/sbin/gmirror_status_check.php
+1
-1
services_dhcpv6.php
src/www/services_dhcpv6.php
+1
-1
status_filter_reload.php
src/www/status_filter_reload.php
+4
-3
status_queues.php
src/www/status_queues.php
+5
-3
system_advanced_firewall.php
src/www/system_advanced_firewall.php
+3
-3
vpn_pppoe.php
src/www/vpn_pppoe.php
+7
-3
No files found.
src/etc/inc/globals.inc
View file @
f21a4756
...
...
@@ -37,7 +37,6 @@ $g = array(
"factory_shipped_password"
=>
"opnsense"
,
"dhcpd_chroot_path"
=>
"/var/dhcpd"
,
"unbound_chroot_path"
=>
"/var/unbound"
,
"varrun_path"
=>
"/var/run"
,
"varetc_path"
=>
"/var/etc"
,
"vardb_path"
=>
"/var/db"
,
"admin_group"
=>
"admins"
,
...
...
src/sbin/gmirror_status_check.php
View file @
f21a4756
...
...
@@ -32,7 +32,7 @@ require_once("globals.inc");
require_once
(
"gmirror.inc"
);
global
$g
;
$status_file
=
"
{
$g
[
'varrun_path'
]
}
/gmirror.status"
;
$status_file
=
'/var/run/gmirror.status'
;
$mirror_status
=
gmirror_get_status
();
$mirror_list
=
array_keys
(
$mirror_status
);
...
...
src/www/services_dhcpv6.php
View file @
f21a4756
...
...
@@ -301,7 +301,7 @@ if ($_POST) {
if
(
!
$input_errors
||
$_POST
[
'apply'
]
==
'Apply changes'
)
{
/* Stop DHCPv6 so we can cleanup leases */
killbypid
(
"
{
$g
[
'dhcpd_chroot_path'
]
}
{
$g
[
'varrun_path'
]
}
/dhcpdv6.pid"
);
killbypid
(
"
{
$g
[
'dhcpd_chroot_path'
]
}
/var/run
/dhcpdv6.pid"
);
// dhcp_clean_leases();
/* dnsmasq_configure calls dhcpd_configure */
/* no need to restart dhcpd twice */
...
...
src/www/status_filter_reload.php
View file @
f21a4756
<?php
/*
status_filter_reload.php
Copyright (C) 2006 Scott Ullrich
All rights reserved.
...
...
@@ -33,8 +33,9 @@ require_once("functions.inc");
$pgtitle
=
array
(
gettext
(
"Status"
),
gettext
(
"Filter Reload Status"
));
$shortcut_section
=
"firewall"
;
if
(
file_exists
(
"
{
$g
[
'varrun_path'
]
}
/filter_reload_status"
))
$status
=
file_get_contents
(
"
{
$g
[
'varrun_path'
]
}
/filter_reload_status"
);
if
(
file_exists
(
'/var/run/filter_reload_status'
))
{
$status
=
file_get_contents
(
'/var/run/filter_reload_status'
);
}
if
(
$_GET
[
'getstatus'
])
{
echo
"|
{
$status
}
|"
;
...
...
src/www/status_queues.php
View file @
f21a4756
...
...
@@ -45,13 +45,15 @@ class QueueStats {
public
$suspends
;
public
$drops
;
}
if
(
!
file_exists
(
"
{
$g
[
'varrun_path'
]
}
/qstats.pid"
)
||
!
isvalidpid
(
"
{
$g
[
'varrun_path'
]
}
/qstats.pid"
))
{
if
(
!
isvalidpid
(
'/var/run/qstats.pid'
))
{
/* Start in the background so we don't hang up the GUI */
mwexec_bg
(
"/usr/local/sbin/qstats -p
{
$g
[
'varrun_path'
]
}
/qstats.pid"
);
mwexec_bg
(
'/usr/local/sbin/qstats -p /var/run/qstats.pid'
);
/* Give it a moment to start up */
sleep
(
1
);
}
$fd
=
@
fsockopen
(
"unix://
{
$g
[
'varrun_path'
]
}
/qstats"
);
$fd
=
@
fsockopen
(
'unix:///var/run/qstats'
);
if
(
!
$fd
)
{
$error
=
"Something wrong happened during comunication with stat gathering"
;
}
else
{
...
...
src/www/system_advanced_firewall.php
View file @
f21a4756
...
...
@@ -203,9 +203,9 @@ if ($_POST) {
write_config
();
// Kill filterdns when value changes, filter_configure() will restart it
if
(
(
$old_aliasesresolveinterval
!=
$config
[
'system'
][
'aliasesresolveinterval'
])
&&
isvalidpid
(
"
{
$g
[
'varrun_path'
]
}
/filterdns.pid"
))
killbypid
(
"
{
$g
[
'varrun_path'
]
}
/filterdns.pid"
);
if
(
$old_aliasesresolveinterval
!=
$config
[
'system'
][
'aliasesresolveinterval'
])
{
killbypid
(
'/var/run/filterdns.pid'
);
}
$retval
=
0
;
$retval
=
filter_configure
();
...
...
src/www/vpn_pppoe.php
View file @
f21a4756
...
...
@@ -31,8 +31,13 @@ require_once("guiconfig.inc");
require_once
(
"filter.inc"
);
require_once
(
"vpn.inc"
);
if
(
!
is_array
(
$config
[
'pppoes'
][
'pppoe'
]))
if
(
!
is_array
(
$config
[
'pppoes'
]))
{
$config
[
'pppoes'
]
=
array
();
}
if
(
!
is_array
(
$config
[
'pppoes'
][
'pppoe'
]))
{
$config
[
'pppoes'
][
'pppoe'
]
=
array
();
}
$a_pppoes
=
&
$config
[
'pppoes'
][
'pppoe'
];
...
...
@@ -65,8 +70,7 @@ if ($_POST) {
if
(
$_GET
[
'act'
]
==
"del"
)
{
if
(
$a_pppoes
[
$_GET
[
'id'
]])
{
if
(
"
{
$g
[
'varrun_path'
]
}
/pppoe"
.
$a_pppoes
[
$_GET
[
'id'
]][
'pppoeid'
]
.
"-vpn.pid"
)
killbypid
(
"
{
$g
[
'varrun_path'
]
}
/pppoe"
.
$a_pppoes
[
$_GET
[
'id'
]][
'pppoeid'
]
.
"-vpn.pid"
);
killbypid
(
"/var/run/pppoe
{
$a_pppoes
[
$_GET
[
'id'
]][
'pppoeid'
]
}
-vpn.pid"
);
if
(
is_dir
(
"
{
$g
[
'varetc_path'
]
}
/pppoe"
.
$a_pppoes
[
$_GET
[
'id'
]][
'pppoeid'
]))
mwexec
(
"/bin/rm -r
{
$g
[
'varetc_path'
]
}
/pppoe"
.
$a_pppoes
[
$_GET
[
'id'
]][
'pppoeid'
]);
unset
(
$a_pppoes
[
$_GET
[
'id'
]]);
...
...
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