diff options
author | Seungjae Yoo <seungjaeyoo@google.com> | 2023-06-16 10:37:14 +0900 |
---|---|---|
committer | Seungjae Yoo <seungjaeyoo@google.com> | 2023-06-16 15:13:33 +0900 |
commit | b1f09eb836129e9088703022e6871b6b935a196f (patch) | |
tree | a168ed109f2604535553832c67efa6f24e6c48b7 | |
parent | abcf10382daf6957b951dd27d8cddfa4d5981a43 (diff) | |
download | openwrt-prebuilts-b1f09eb836129e9088703022e6871b6b935a196f.tar.gz |
Change instance_name argument as webrtc_device_id
Bug: 269366588, 240877167
Test: cvd -group_name="gg" -instance_name=aa,bb start
Test: cvd -group_name="gg" -instance_name=aa env call OpenwrtControlService LuciRpc "subpath:'uci' method:'get_all' params:['network']"
Test: cvd -group_name="gg" -instance_name=bb env call OpenwrtControlService LuciRpc "subpath:'uci' method:'get_all' params:['network']"
Change-Id: Ieff50561556e1c603533e285784798e6927d89d7
-rw-r--r-- | shared/uci-defaults/0_default_config | 8 |
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/" |