Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-webui-jst.bbappend
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include ccsp_common_bananapi.inc
SRC_URI_append = " file://CcspWebUI.service"

do_install_append () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'true', 'false', d)}; then
Expand All @@ -16,6 +17,8 @@ do_install_append () {
install -m 0755 ${S}/../xb6/jst/actionHandler/ajaxSet_wireless_network_configuration_edit.jst ${D}/usr/www2/actionHandler/ajaxSet_wireless_network_configuration_edit.jst
fi
install -m 0755 ${S}/../xb6/jst/at_a_glance.jst ${D}/usr/www2/at_a_glance.jst
install -m 0644 ${WORKDIR}/CcspWebUI.service ${D}${systemd_unitdir}/system/
rm -r ${D}${base_libdir}/rdk
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_managed_devices.jst
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_managed_services.jst
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_port_forwarding.jst
Expand All @@ -24,3 +27,4 @@ do_install_append () {
sed -i "s/\$clients_RSSI\[strtoupper(\$Host\[\$i.toString()\]\['PhysAddress'\])\]/\$Host\[\$i\]\['X_CISCO_COM_RSSI'\]/g" ${D}/usr/www2/connected_devices_computers.jst
sed -i '/<?%if (strpos($partnerId, "sky-") !== false)/ s/sky-/RDKM/' ${D}/usr/www2/wireless_network_configuration_edit.jst
}
FILES:${PN}:remove = "${base_libdir}/rdk/*"
9 changes: 9 additions & 0 deletions meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/files/CcspWebUI.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=CcspWebUI service
After=CcspLMLite.service

[Service]
Type=simple
WorkingDirectory=/usr/www2
ExecStart=/bin/sh -c '/etc/webgui.sh'
RemainAfterExit=yes