summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/install_functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/install_functions.sh')
-rwxr-xr-xabs/core/LinHES-config/install_functions.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/install_functions.sh b/abs/core/LinHES-config/install_functions.sh
index 8f24835..3e70e79 100755
--- a/abs/core/LinHES-config/install_functions.sh
+++ b/abs/core/LinHES-config/install_functions.sh
@@ -309,7 +309,31 @@ function request_dhcp(){
}
+function in_kernel_support() {
+ #lifted from mythbuntu
+ #For disabling other protocols, adjust to the new location in 2.6.37. 91
+ if [ -d /sys/class/rc ]
+ then
+ for file in `find /sys/class/rc/*/ -name protocols`
+ do
+ if [ "$1" = "disable" ]
+ then
+ echo "lirc" > $file
+ else
+ echo "none" > $file
+ for protocol in `cat $file`; do
+ echo "+${protocol}" > $file
+ done
+ fi
+ done
+ fi
+}
+
+
+
function init_remote {
+ mkdir -p /var/run/lirc
+
echo $CMDLINE | grep -q remoteport
if [ $? -eq 0 ]
then
@@ -327,6 +351,7 @@ function init_remote {
fi
fi
+ in_kernel_support "disable"
echo $CMDLINE | grep -q remote
if [ $? -eq 0 ]