diff options
author | Dan Shi <dshi@google.com> | 2023-06-19 17:08:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-06-19 17:08:16 +0000 |
commit | 6e56aba22d0a109af07000fa5c8c714ad9751810 (patch) | |
tree | d0897532c3cb7b76d06fbdf1cbf5d2bed2392356 | |
parent | b1f09eb836129e9088703022e6871b6b935a196f (diff) | |
download | openwrt-prebuilts-6e56aba22d0a109af07000fa5c8c714ad9751810.tar.gz |
Revert "Change instance_name argument as webrtc_device_id"
Revert submission 2628849-openwrtwebrtc
Reason for revert: b/287972737
Reverted changes: /q/submissionid:2628849-openwrtwebrtc
Change-Id: I3b388420281a2f8c4a11647ce66e7b26811af0df
-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 1f14223..010de78 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 -webrtc_device_id="cvd-1" +instance_name="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 "^webrtc_device_id="; then - webrtc_device_id=${word#*"="} + elif echo "$word" | grep "^instance_name="; then + instance_name=${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/$webrtc_device_id/openwrt" +web_base="devices/$instance_name/openwrt" mkdir -p "/www/$web_base/" mv /www/cgi-bin "/www/$web_base/" mv /www/luci-static "/www/$web_base/" |