OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
etc
/
rc2.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/06/2024 02:31:58 PM
rwxr-xr-x
📄
README
677 bytes
02/05/2016 09:48:45 AM
rw-r--r--
📄
S01cgmanager
3.48 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
S01rsyslog
2.73 KB
02/03/2016 10:54:29 AM
rwxr-xr-x
📄
S01ubuntu-fan
1.2 KB
10/28/2016 03:24:40 PM
rwxr-xr-x
📄
S02cgproxy
3.28 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
S02cron
2.98 KB
05/10/2022 10:15:22 PM
rwxr-xr-x
📄
S02dbus
2.75 KB
10/07/2019 11:29:04 AM
rwxr-xr-x
📄
S02ssh
3.98 KB
05/13/2020 02:12:28 PM
rwxr-xr-x
📄
S03grub-common
0 bytes
01/01/1970 12:00:00 AM
---------
📄
S03ondemand
1.54 KB
10/16/2015 02:45:22 AM
rwxr-xr-x
📄
S03rc.local
820 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
Editing: S03ondemand
Close
#! /bin/sh ### BEGIN INIT INFO # Provides: ondemand # Required-Start: $remote_fs $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Set the CPU Frequency Scaling governor to "ondemand" ### END INIT INFO # Don't run if we're going to start an Android LXC container: [ ! -f /etc/init/lxc-android-config.conf ] || exit 0 PATH=/sbin:/usr/sbin:/bin:/usr/bin . /lib/init/vars.sh . /lib/lsb/init-functions AVAILABLE="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors" DOWN_FACTOR="/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor" case "$1" in start) start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background ;; background) sleep 60 # probably enough time for desktop login [ -f $AVAILABLE ] || exit 0 read governors < $AVAILABLE case $governors in *interactive*) GOVERNOR="interactive" break ;; *ondemand*) GOVERNOR="ondemand" case $(uname -m) in ppc64*) SAMPLING=100 ;; esac break ;; *powersave*) GOVERNOR="powersave" break ;; *) exit 0 ;; esac for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor do [ -f $CPUFREQ ] || continue echo -n $GOVERNOR > $CPUFREQ done if [ -n "$SAMPLING" ] && [ -f $DOWN_FACTOR ]; then echo -n $SAMPLING > $DOWN_FACTOR fi ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac