Merge pull request #19 from sargon/master
gluon-core: force kernel panic on out of memory This also adds /lib/gluon/functions/sysctl.sh for setting sysctl options.
This commit is contained in:
commit
14d0d522bc
4
package/gluon-core/files/lib/gluon/functions/sysctl.sh
Normal file
4
package/gluon-core/files/lib/gluon/functions/sysctl.sh
Normal file
@ -0,0 +1,4 @@
|
||||
sysctl_set() {
|
||||
sed -i "/^${1//./\.}=/d" /etc/sysctl.conf
|
||||
echo "${1}=$2" >> /etc/sysctl.conf
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /lib/gluon/functions/sysctl.sh
|
||||
|
||||
sysctl_set vm.panic_on_oom 1
|
Loading…
Reference in New Issue
Block a user