diff options
author | Sangjung Woo <sangjung.woo@samsung.com> | 2016-10-10 19:55:24 +0900 |
---|---|---|
committer | Sangjung Woo <sangjung.woo@samsung.com> | 2016-10-11 15:55:55 +0900 |
commit | ec3acc822eccbc496c03edeba182038b840b1229 (patch) | |
tree | a0ba6eadc125da0867ba0f0299bc42c00ec9df58 | |
parent | 3dd6dd3e5e120200876923ca9a38623ac2779f96 (diff) | |
download | system-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 |
spec: Add ivi-network.service for ivi profilesubmit/tizen_3.0/20161028.082323submit/tizen_3.0/20161028.062323submit/tizen/20161011.075122accepted/tizen/wearable/20161011.234314accepted/tizen/tv/20161011.234300accepted/tizen/mobile/20161011.234414accepted/tizen/ivi/20161011.234348accepted/tizen/common/20161011.154426accepted/tizen/3.0/wearable/20161028.122852accepted/tizen/3.0/tv/20161028.122630accepted/tizen/3.0/mobile/20161028.122351accepted/tizen/3.0/ivi/20161028.123055
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.spec | 14 | ||||
-rw-r--r-- | units/ivi-network.service | 11 |
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 |