/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/010-sysctl is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | case "$MODE" in
after-install)
if [ -f "$ROOT"/etc/sysctl.conf ];then
if grep -q '^[[:blank:]]*vm.swappiness=' "$ROOT"/etc/sysctl.conf; then
sed -i -e 's/^\([[:blank:]]*vm.swappiness=\).*$/\1100/'
else
echo "# to avoid swap-related race when X server RSS is sharply increasing" >> "$ROOT"/etc/sysctl.conf
echo "vm.swappiness=100" >> "$ROOT"/etc/sysctl.conf
fi
fi
;;
esac
|