Commit c3c8c463 authored by Mike Hibler's avatar Mike Hibler
Browse files

Avoid accumulating Emulab additions in sysctl.conf.

parent f4e9b5de
......@@ -204,7 +204,10 @@ sysetc-install: dir-install ifcfgs
ln -sf $(RRCDIR)/rc.local $(SYSETCDIR)/rc.local; \
if [ -e $(SYSETCDIR)/sysctl.conf ]; then \
cat $(SRCDIR)/sysctl.conf.tail >> $(SYSETCDIR)/sysctl.conf; \
if grep -q 'START added by Emulab' $(SYSETCDIR)/sysctl.conf; then \
sed -i -e '/START added by Emulab/,/END added by Emulab/d' $(SYSETCDIR)/sysctl.conf; \
fi; \
cat $(SRCDIR)/sysctl.conf.tail >> $(SYSETCDIR)/sysctl.conf; \
# START added by Emulab client install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment