Skip to content

Commit 7631806

Browse files
author
ghollingworth
committed
Add Slice2 project
1 parent 44da20b commit 7631806

30 files changed

+142998
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
hdparm -S60 /dev/sda
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
if [ -f /storage/.kodi/media/ledpatterns/shutdown.png ]; then
4+
LEDDIR=/storage/.kodi
5+
else
6+
LEDDIR=/usr/share/kodi
7+
fi
8+
9+
case "$1" in
10+
halt)
11+
hdparm -y /dev/sda
12+
led_png $LEDDIR/media/ledpatterns/shutdown.png
13+
;;
14+
poweroff)
15+
hdparm -y /dev/sda
16+
led_png $LEDDIR/media/ledpatterns/shutdown.png
17+
;;
18+
reboot)
19+
led_png $LEDDIR/media/ledpatterns/shutdown.png
20+
;;
21+
*)
22+
;;
23+
esac
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[Unit]
2+
Description=Debug Shell on /dev/console
3+
DefaultDependencies=no
4+
ConditionKernelCommandLine=console
5+
6+
[Service]
7+
WorkingDirectory=/storage
8+
Environment="ENV=/etc/profile"
9+
ExecStartPre=/bin/sh -c 'echo -en "\033[?25h"'
10+
ExecStart=/bin/sh
11+
Restart=always
12+
RestartSec=0
13+
StandardInput=tty
14+
TTYPath=/dev/console
15+
TTYReset=yes
16+
TTYVHangup=yes
17+
KillMode=process
18+
IgnoreSIGPIPE=no
19+
# bash ignores SIGTERM
20+
KillSignal=SIGHUP
21+
22+
[Install]
23+
WantedBy=sysinit.target
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
3+
################################################################################
4+
# This file is part of OpenELEC - http://www.openelec.tv
5+
# Copyright (C) 2009-2015 Stephan Raue ([email protected])
6+
#
7+
# OpenELEC is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 2 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# OpenELEC is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
19+
################################################################################
20+
21+
# Enable io_is_busy for improved sdhost performance - essentially, equivalent of force_turbo=1 but for mmc
22+
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
23+
24+
# Configure frequency scaling properties - should improve performance a little (turbo, in most cases)
25+
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
26+
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
27+
echo 100000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
28+
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<advancedsettings>
3+
<showexitbutton>false</showexitbutton>
4+
5+
<fanartres>720</fanartres>
6+
<imageres>540</imageres>
7+
8+
<video>
9+
<busydialogdelayms>750</busydialogdelayms>
10+
</video>
11+
12+
<samba>
13+
<clienttimeout>30</clienttimeout>
14+
</samba>
15+
</advancedsettings>

0 commit comments

Comments
 (0)