busybox: convert sysctl user configs to systemd

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-18 15:48:25 +02:00
parent eee51ae3b1
commit bd716e3506
4 changed files with 7 additions and 39 deletions

View File

@ -1,3 +0,0 @@
## transmission with uTP support
# net.core.wmem_max=1048576
# net.core.rmem_max=4194304

View File

@ -0,0 +1,5 @@
# transmission with uTP support
# please comment out the follow line to activate this values:
# net.core.wmem_max=1048576
# net.core.rmem_max=4194304

View File

@ -1,34 +0,0 @@
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
# setup sysctl
#
# runlevels: openelec, installer, textmode
progress "setup sysctl"
if [ -f /etc/sysctl.conf ]; then
sysctl -p /etc/sysctl.conf > /dev/null 2>&1 &
fi
if [ -f /storage/.config/sysctl.conf ]; then
progress "set sysctls from /storage/.config/sysctl.conf"
sysctl -p /storage/.config/sysctl.conf > /dev/null 2>&1 &
fi

View File

@ -54,8 +54,8 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
cp $PKG_DIR/config/httpd.conf $INSTALL/etc
echo "chmod 000 $INSTALL/etc/shadow" >> $FAKEROOT_SCRIPT
mkdir -p $INSTALL/usr/config
cp $PKG_DIR/config/sysctl.conf.sample $INSTALL/usr/config
mkdir -p $INSTALL/usr/config/sysctl.d
cp $PKG_DIR/config/transmission.conf $INSTALL/usr/config/sysctl.d
# /etc/fstab is needed by...
touch $INSTALL/etc/fstab