Skip to content
Snippets Groups Projects
Commit c2adf36e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode: don't let UCI_CONFIG_DIR leak to the telnet environment etc.

parent 39eed2b9
Branches
Tags
No related merge requests found
...@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment