gluon-core: get rid of old sysctl settings
This commit is contained in:
parent
9b937a8c64
commit
ba9fc94e85
8
package/gluon-core/files/lib/gluon/upgrade/100-core-reset-sysctl
Executable file
8
package/gluon-core/files/lib/gluon/upgrade/100-core-reset-sysctl
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This script can be removed after Gluon v2018.2
|
||||||
|
|
||||||
|
# Check for a random line that always was in /etc/sysctl.conf
|
||||||
|
if grep -qxF 'net.ipv4.ip_forward=1' /etc/sysctl.conf; then
|
||||||
|
echo '# Defaults are configured in /etc/sysctl.d/* and can be customized in this file' >/etc/sysctl.conf
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user