summaryrefslogtreecommitdiff
path: root/utils/ypr0tools/rockbox.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ypr0tools/rockbox.sh')
-rwxr-xr-xutils/ypr0tools/rockbox.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/ypr0tools/rockbox.sh b/utils/ypr0tools/rockbox.sh
index 665ee9f97c..85e1b43533 100755
--- a/utils/ypr0tools/rockbox.sh
+++ b/utils/ypr0tools/rockbox.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
######################################################################
# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
@@ -44,6 +43,13 @@ echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
mount --bind /mnt/media0/.rockbox /.rockbox
mount --bind /mnt/media0/Playlists /Playlists
+# replace Samsung's si470x.ko with our si4709.ko to support fm radio
+if [ -e /lib/modules/si4709.ko ]
+then
+ rmmod /lib/modules/si470x.ko
+ insmod /lib/modules/si4709.ko
+fi
+
MAINFILE="/mnt/media0/.rockbox/rockbox"
MAINFILE_ARGV=''
MAINFILE_REDIRECT='>/dev/null 2>&1'