diff --git a/openvswitch.spec b/openvswitch.spec index 00be759..95b0ba3 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -330,14 +330,17 @@ install -m 644 %{SOURCE3} \ %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}-switch install -m 755 %{SOURCE2} \ %{buildroot}/%{_sysconfdir}/init.d/%{name}-switch - ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch install -m 755 %{SOURCE5} \ %{buildroot}/%{_sysconfdir}/init.d/%{name}-vtep - ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep %if 0%{?suse_version} > 1230 +ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch +ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep install -D -m 644 %{SOURCE7} \ %{buildroot}%{_unitdir}/openvswitch.service +%else +ln -sf %{_sysconfdir}/init.d/%{name}-switch %{buildroot}%{_sbindir}/rc%{name}-switch +ln -sf %{_sysconfdir}/init.d/%{name}-vtep %{buildroot}%{_sbindir}/rc%{name}-vtep %endif install -d -m 755 %{buildroot}/%{_sysconfdir}/sysconfig