2

I am having issues with lirc and remote button press repeating. I tried everything and the last thing o try is add a parameter (--repeat-filter) to a 62_eventlircd file located in /etc/init.d

Problem is that this directory is in read_only file-system so I cant edit/delete it. chmod doesn't work either.

I attempted to remount it but I got an error: mount: can't find /etc in /proc/mounts

How can I edit this file? Or better still how can I override setting in this file from /storage directory?

DominicM
  • 155
  • 1
  • 3
  • 11

1 Answers1

7

I guess your image is OpenELEC as @Lawrence said that. OpenELEC uses squashfs compressed image filesystem so you can't edit without uncompressing.

To uncompress it, convert your sd-card content into image with dd command in another computer which runs linux.

dd if=/dev/mmcblk0 of=/tmp/openelec.img

Then install squashfs-tools to get compress/uncompress tools for squashfs.

apt-get install squashfs-tools

To uncompress and edit your file use unsquashfs

cd /tmp
unsquashfs openelec.img # it will create a folder named squashfs-root
nano /tmp/squashfs-root/etc/init.d/62_eventlircd

save your changes, then compress it to use again.

cd /tmp
mksquashfs squashfs-root openelec-modified.img

then re-image your sd-card with modified image file.

dd if=/tmp/openelec-modified.img of=/dev/mmcblk0
gurcanozturk
  • 3,748
  • 1
  • 21
  • 17