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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SRC_URI += " \
file://connman.service \
file://connman.sh.in \
file://main.conf \
file://usb-dev.config \
"
do_configure:append () {
sed -e 's/@WEBOS_CONNMAN_PREACTIVATE_INTERFACE_LIST@/${WEBOS_CONNMAN_PREACTIVATE_INTERFACE_LIST}/g; s%@DATADIR@%${datadir}%g' \
Expand All @@ -16,6 +17,9 @@ do_install:append() {
install -d ${D}${sysconfdir}/connman
install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman/

install -d ${D}${localstatedir}/lib/connman
install -m 0644 ${WORKDIR}/usb-dev.config ${D}${localstatedir}/lib/connman/

install -d ${D}${sysconfdir}/systemd/system
install -v -m 644 ${WORKDIR}/connman.service ${D}${sysconfdir}/systemd/system/
install -d ${D}${sysconfdir}/systemd/system/scripts
Expand All @@ -25,4 +29,5 @@ do_install:append() {
FILES:${PN} += " \
${sysconfdir}/connman \
${sysconfdir} \
${localstatedir}/lib/connman \
"
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ PreferredTechnologies=ethernet,wifi,cellular
# match any of the list entries. Default value is
# vmnet,vboxnet,virbr,ifb,ve-,vb-.
# NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-
NetworkInterfaceBlacklist = usb

# Allow connman to change the system hostname. This can
# happen for example if we receive DHCP hostname option.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[global]
Name=Gadget USB network

[service_gadget_usb0]
Type=gadget
DeviceName=usb0
IPv4=172.16.42.2/255.255.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ new file mode 100644
index 0000000..15450d0
--- /dev/null
+++ b/files/systemd/webos-connman-adapter.service
@@ -0,0 +1,15 @@
@@ -0,0 +1,16 @@
+[Unit]
+Description=webos - "%n"
+Requires=ls-hubd.service
Expand All @@ -24,6 +24,7 @@ index 0000000..15450d0
+Type=simple
+OOMScoreAdjust=-500
+EnvironmentFile=-/var/systemd/system/env/webos-connman-adapter.env
+ExecStartPre=-/usr/bin/connmanctl enable gadget
+ExecStart=/usr/sbin/webos-connman-adapter
+Restart=on-failure
+
Expand Down