View Single Post
Old 03-05-2024, 09:29 AM   #49
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 755
Karma: 622656
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Got it working on FW 6.8.2676-U-W without ssh with root (I'm a Windows user).
There are a some files in /ebrmain that are not in a compressed read-only rom image - cramfs. All of /ebrmain/config/*.* are outside the cramfs loop:
Quote:
/ebrmain/config:
-rw-r--r-- 1 280 Dec 5 11:15 desktop_apps.cfg
lrwxrwxrwx 1 30 Dec 13 18:02 device.cfg -> /ebrmain/config/device.cfg.gen
-rw-r--r-- 1 450 Dec 13 18:02 device.cfg.gen
-rw-r--r-- 1 1.7K Dec 5 11:15 extensions.cfg
lrwxrwxrwx 1 30 Dec 13 18:02 global.cfg -> /ebrmain/config/global.cfg.gen
-rw-r--r-- 1 2.0K Dec 13 18:02 global.cfg.gen
lrwxrwxrwx 1 31 Dec 13 18:02 rsslist.cfg -> /ebrmain/config/rsslist.cfg.gen
-rw-r--r-- 1 2.3K Dec 13 18:02 rsslist.cfg.gen

Steps:
1) Copy /ebrmain/config/device.cfg.gen /mnt/ext1/device.cfg.gen and change the line:
Quote:
have_opds=0
to
Quote:
have_opds=1
2) Run a small script which needs root and basically does (outside a lot of backup and logging):
2.1) remount /ebrmain to rw
2.2) set permission for /ebrmain/config/device.cfg.gen to rw-rw-rw
2.3) copy changed device.cfg.gen from mnt/ext1 back to /ebrmain/config/device.cfg.gen
2.4) changes permission back and remounts /ebrmain to ro back.


Quote:
#!/bin/sh
logname="/mnt/ext1/OPDS_install.log"
/mnt/secure/su mount -o rw,remount /ebrmain > $logname
/mnt/secure/su cp -f /ebrmain/config/device.cfg.gen /mnt/ext1/device.cfg.gen.org >> $logname
/mnt/secure/su stat -c "%a" /ebrmain/config/device.cfg.gen >> $logname
/mnt/secure/su chmod 666 /ebrmain/config/device.cfg.gen >> $logname
/mnt/secure/su stat -c "%a" /ebrmain/config/device.cfg.gen >> $logname
/mnt/secure/su cp -f /mnt/ext1/device.cfg.gen /ebrmain/config >> $logname
/mnt/secure/su chmod 644 /ebrmain/config/device.cfg.gen >> $logname
/mnt/secure/su stat -c "%a" /ebrmain/config/device.cfg.gen >> $logname
/mnt/secure/su mount -o ro,remount /ebrmain >> $logname
exit
Thanks to all who have helped.

Last edited by nhedgehog; 03-05-2024 at 09:34 AM.
nhedgehog is offline   Reply With Quote