This repository has been archived on 2024-07-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2022-05-13 09:37:26 +02:00

48 lines
799 B
Bash
Executable File

#!/bin/sh
#
# /etc/init.d/systune
# update-rc.d systune start 50 2 3 4 5 .
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions
PACKAGE="systune"
SOURCE="systune"
set -e
### BEGIN INIT INFO
# Provides: systune
# Required-Start: $remote_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PROGRAM=/usr/sbin/systune
NAME=systune
DESC="tuning kernel"
test -f $PROGRAM || exit 0
set -e
case "$1" in
start)
echo -n "Configuring kernel parameters..."
$PROGRAM
echo " done"
;;
stop)
;;
reload|restart|force-reload)
$0 start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2
exit 1
;;
esac
exit 0