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
b542ddf7
Commit
b542ddf7
authored
Dec 18, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: switch web GUI reload for reload all, some cleanups
parent
81e205f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
rc.initial
src/etc/rc.initial
+2
-2
rc.reload_all
src/etc/rc.reload_all
+5
-0
rc.restart_webgui
src/etc/rc.restart_webgui
+2
-6
No files found.
src/etc/rc.initial
View file @
b542ddf7
...
...
@@ -30,7 +30,7 @@ echo " 0) Logout 7) Ping host"
echo
" 1) Assign Interfaces 8) Shell"
echo
" 2) Set interface(s) IP address 9) pfTop"
echo
" 3) Reset the root password 10) Filter Logs"
echo
" 4) Reset to factory defaults 11) Re
start web interface
"
echo
" 4) Reset to factory defaults 11) Re
load all services
"
echo
" 5) Power off system 12) Upgrade from console"
echo
" 6) Reboot system 13) Restore a configuration"
echo
...
...
@@ -76,7 +76,7 @@ case ${OPCODE} in
/usr/sbin/tcpdump
-s
256
-v
-S
-l
-n
-e
-ttt
-i
pflog0
;;
11
)
/usr/local/etc/rc.re
start_webgui
/usr/local/etc/rc.re
load_all
;;
12
)
/usr/local/etc/rc.initial.firmware
...
...
src/etc/rc.reload_all
View file @
b542ddf7
...
...
@@ -66,3 +66,8 @@ if (function_exists('plugins_configure')) {
log_error
(
"rc.reload_all: Reloading filter configuration."
);
filter_configure_sync
(
true
);
log_error
(
"rc.reload_all: Reloading web GUI."
);
system_webgui_configure
(
true
);
enable_rrd_graphing
(
true
);
src/etc/rc.restart_webgui
View file @
b542ddf7
...
...
@@ -12,9 +12,5 @@ if (count($argv) > 1 && is_numeric($argv[1])) {
sleep
(
$argv
[
1
]);
}
echo
'Restarting webConfigurator...'
;
system_webgui_configure
();
enable_rrd_graphing
();
echo
'done.'
.
PHP_EOL
;
system_webgui_configure
(
true
);
enable_rrd_graphing
(
true
);
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