summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungjae Yoo <seungjaeyoo@google.com>2023-06-19 10:01:08 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-06-19 10:01:08 +0000
commitb76e8ab9ef5ad38b7a445a47adda77e7647ef6c9 (patch)
treea168ed109f2604535553832c67efa6f24e6c48b7
parent73b36ae30bcff3683919e6daec6e312eeb962da0 (diff)
parent6f5909d12bbcda5231800ee30a49d4dedd16c443 (diff)
downloadopenwrt-prebuilts-b76e8ab9ef5ad38b7a445a47adda77e7647ef6c9.tar.gz
Change instance_name argument as webrtc_device_id am: b1f09eb836 am: c53dd0d1cd am: 4227dfb73f am: 6f5909d12b
Original change: https://android-review.googlesource.com/c/platform/external/openwrt-prebuilts/+/2628869 Change-Id: Icffd24438200cad26c7ab95b04bbef25016948d0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--shared/uci-defaults/0_default_config8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/uci-defaults/0_default_config b/shared/uci-defaults/0_default_config
index 010de78..1f14223 100644
--- a/shared/uci-defaults/0_default_config
+++ b/shared/uci-defaults/0_default_config
@@ -7,7 +7,7 @@ rule_name=$(uci add network rule)
# Extract configs from /proc/cmdline
bridged_wifi_tap=false
-instance_name="cvd-1"
+webrtc_device_id="cvd-1"
words=$(cat /proc/cmdline)
while
word=${words%%" "*}
@@ -19,8 +19,8 @@ while
uci set network.wan.ipaddr=${word#*"="}
elif echo "$word" | grep "^wan_broadcast="; then
uci set network.wan.broadcast=${word#*"="}
- elif echo "$word" | grep "^instance_name="; then
- instance_name=${word#*"="}
+ elif echo "$word" | grep "^webrtc_device_id="; then
+ webrtc_device_id=${word#*"="}
fi
next=${words#*" "}
[ "$words" != "$next" ]
@@ -39,7 +39,7 @@ ln -sf $(readlink -f /www/cgi-bin/cgi-backup) /www/cgi-bin/cgi-backup
ln -sf $(readlink -f /www/cgi-bin/cgi-download) /www/cgi-bin/cgi-download
ln -sf $(readlink -f /www/cgi-bin/cgi-exec) /www/cgi-bin/cgi-exec
ln -sf $(readlink -f /www/cgi-bin/cgi-upload) /www/cgi-bin/cgi-upload
-web_base="devices/$instance_name/openwrt"
+web_base="devices/$webrtc_device_id/openwrt"
mkdir -p "/www/$web_base/"
mv /www/cgi-bin "/www/$web_base/"
mv /www/luci-static "/www/$web_base/"