View Single Post
Old 03-05-2024, 10:38 AM   #51
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,332
Karma: 10101011
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Made it completely autonomous...

FYI.. the script below is just a simpler method for rooted/jailbroken devices. Save the code as a .app file in /mnt/ext1/applications to run.
If you're NOT rooted or can't root try THIS


Code:
#!/bin/sh

# needs root!
udo=/mnt/secure/su

rm -f /mnt/ext1/device.cfg.gen
IFS=''; cat "/ebrmain/config/device.cfg.gen" |
while read data; do
	if echo "$data" | grep -q "have_opds=0"; then 
		echo "have_opds=1" >> "/mnt/ext1/device.cfg.gen"
    else echo "${data}" >> "/mnt/ext1/device.cfg.gen"; fi
done

$udo mount -o rw,remount /ebrmain
$udo chmod 666 /ebrmain/config/device.cfg.gen
$udo cp -f /mnt/ext1/device.cfg.gen /ebrmain/config
$udo chmod 644 /ebrmain/config/device.cfg.gen
$udo mount -o ro,remount /ebrmain

rm -f /mnt/ext1/device.cfg.gen

exit

Last edited by neil_swann80; 03-06-2024 at 03:45 AM.
neil_swann80 is online now   Reply With Quote