From 267331bab6e9b82069f51e6b520e06861d388e92 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 30 Mar 2011 22:29:57 +0200 Subject: [PATCH] Stop only NM on suspend. (#146) Also remove ip_forward setting from sysctl, so NM will not reset it on restart --- rpm_spec/core-netvm.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index b4f1eb3..d09139b 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -73,6 +73,9 @@ cp ../common/vif-route-qubes $RPM_BUILD_ROOT/etc/xen/scripts chkconfig --add qubes_core_netvm || echo "WARNING: Cannot add service qubes_core!" chkconfig qubes_core_netvm on || echo "WARNING: Cannot enable service qubes_core!" +# Remove ip_forward setting from sysctl, so NM will not reset it +sed 's/^net.ipv4.ip_forward.*/#\0/' -i /etc/sysctl.conf + %preun if [ "$1" = 0 ] ; then # no more packages left