Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
c2adf36e
Commit
c2adf36e
authored
11 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-config-mode: don't let UCI_CONFIG_DIR leak to the telnet environment etc.
parent
39eed2b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-config-mode/files/etc/init.d/gluon-config-mode
+20
-19
20 additions, 19 deletions
package/gluon-config-mode/files/etc/init.d/gluon-config-mode
with
20 additions
and
19 deletions
package/gluon-config-mode/files/etc/init.d/gluon-config-mode
+
20
−
19
View file @
c2adf36e
...
@@ -24,6 +24,7 @@ check_enable() {
...
@@ -24,6 +24,7 @@ check_enable() {
}
}
setup_network
()
{
setup_network
()
{
(
export
UCI_CONFIG_DIR
=
/var/gluon/config-mode/config
export
UCI_CONFIG_DIR
=
/var/gluon/config-mode/config
mkdir
-p
"
$UCI_CONFIG_DIR
"
mkdir
-p
"
$UCI_CONFIG_DIR
"
...
@@ -42,7 +43,6 @@ setup_network() {
...
@@ -42,7 +43,6 @@ setup_network() {
uci_commit network
uci_commit network
SERVICE_DAEMONIZE
=
1
SERVICE_DAEMONIZE
=
1
SERVICE_WRITE_PID
=
1
SERVICE_WRITE_PID
=
1
service_start /sbin/netifd
-c
"
$UCI_CONFIG_DIR
"
service_start /sbin/netifd
-c
"
$UCI_CONFIG_DIR
"
...
@@ -51,6 +51,7 @@ setup_network() {
...
@@ -51,6 +51,7 @@ setup_network() {
include /lib/network
include /lib/network
setup_switch
setup_switch
)
}
}
start
()
{
start
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment