diff --git a/haveged.changes b/haveged.changes index 7f5c6b0..e3cfe46 100644 --- a/haveged.changes +++ b/haveged.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 1 10:03:17 CET 2011 - meissner@suse.de + +- also use the SLES code for openSUSE, to avoid unnecessary + services. bnc#675841 + ------------------------------------------------------------------- Tue Jan 4 23:14:52 UTC 2011 - cristian.rodriguez@opensuse.org diff --git a/haveged.spec b/haveged.spec index 031fee5..c5e12c2 100644 --- a/haveged.spec +++ b/haveged.spec @@ -67,22 +67,18 @@ rm -rf %{buildroot} %post ## brace for impact... -%if 0%{?sles_version} - if [ -x /usr/bin/lscpu ]; then - if /usr/bin/lscpu | grep -q "Virtualization type" ; then - ## Is a VM - %{fillup_and_insserv -fy %{name}} - else - ## it isnt. - %{fillup_and_insserv -f %{name}} - fi +if [ -x /usr/bin/lscpu ]; then + if /usr/bin/lscpu | grep -q "Virtualization type" ; then + ## Is a VM + %{fillup_and_insserv -fy %{name}} else - ##there is no lscpu! shouldnt happend... + ## it isnt. %{fillup_and_insserv -f %{name}} fi -%else - %{fillup_and_insserv -fy %{name}} -%endif +else +##there is no lscpu! shouldnt happend... + %{fillup_and_insserv -f %{name}} +fi %postun %restart_on_update %{name}