summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2016-10-10 19:55:24 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2016-10-11 15:55:55 +0900
commitec3acc822eccbc496c03edeba182038b840b1229 (patch)
treea0ba6eadc125da0867ba0f0299bc42c00ec9df58
parent3dd6dd3e5e120200876923ca9a38623ac2779f96 (diff)
downloadsystem-plugin-accepted/tizen/common/20161011.154426.tar.gz
system-plugin-accepted/tizen/common/20161011.154426.tar.bz2
system-plugin-accepted/tizen/common/20161011.154426.zip
In order to communicate with Cluster device, this patch set eth0 as static IP address. This patch is only applied for ivi profile. Change-Id: Iec8f978c37afe7dab9d0fbd12a744a58fec230a3 Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r--packaging/system-plugin.spec14
-rw-r--r--units/ivi-network.service11
2 files changed, 25 insertions, 0 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index 36a06d9..3b13381 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -97,6 +97,14 @@ License: Apache-2.0
%description -n system-upgrade
Systemd offline system update activation package
+%package profile_ivi
+Summary: ivi specific system configuration files
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description profile_ivi
+This package provides ivi specific system configuration files.
+
%prep
%setup -q
@@ -123,6 +131,7 @@ mkdir -p %{buildroot}/csa
mkdir -p %{buildroot}/initrd
install -m 644 units/resize2fs@.service %{buildroot}%{_unitdir}
install -m 644 units/tizen-system-env.service %{buildroot}%{_unitdir}
+install -m 644 units/ivi-network.service %{buildroot}%{_unitdir}
# csa mount
install -m 644 units/csa.mount %{buildroot}%{_unitdir}
@@ -139,6 +148,7 @@ ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs
ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dpartlabel-system\\x2ddata.service
ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tizen-system-env.service
+%install_service multi-user.target.wants ivi-network.service
mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/
install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
@@ -305,3 +315,7 @@ cp -a /usr/lib/systemd/system/user\@.service /usr/lib/systemd/system/__user@.ser
/usr/bin/sed -i -e 's/ExecStart=\(.*\)/ExecStart=\/usr\/bin\/systemd_user_helper %i/' /usr/lib/systemd/system/user\@.service
/usr/bin/sed -i -e '/RemainAfterExit=\(.*\)/d' /usr/lib/systemd/system/user\@.service
echo 'RemainAfterExit=yes' >> /usr/lib/systemd/system/user\@.service
+
+%files profile_ivi
+%{_unitdir}/ivi-network.service
+%{_unitdir}/multi-user.target.wants/ivi-network.service
diff --git a/units/ivi-network.service b/units/ivi-network.service
new file mode 100644
index 0000000..8371fc9
--- /dev/null
+++ b/units/ivi-network.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Set static IP for ivi
+After=connman.service net-config.service
+Requires=connman.service net-config.service
+
+[Service]
+ExecStartPre=/sbin/ifconfig eth0 192.20.16.11
+ExecStart=/sbin/ifconfig eth0 up
+
+[Install]
+WantedBy=multi-user.target