The modem setup.sh had got a lot of improvements.

As the only difference with the modem.sh is the use of
graphics.sh instead of modem.sh which has already been sent
for review and that not many people have the time to do
reviewes, it's best to rely on the modem setup.sh review
process instead and group all the changes in a single patch
for the display renderer.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 display/renderer/setup.sh | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/display/renderer/setup.sh b/display/renderer/setup.sh
index ac5abe8..3864533 100755
--- a/display/renderer/setup.sh
+++ b/display/renderer/setup.sh
@@ -1,5 +1,11 @@
-root_dir="/data/misc/renderer"
-adb root
-sleep 3
-adb shell mkdir -p "$root_dir"
-adb push ./device-files/* "$root_dir/"
+#!/bin/sh
+topdir=$(dirname $0)
+adb root | grep "^root access"
+ret="$?"
+if [ "${ret}" -ne 0 ] ; then
+       adb wait-for-device
+       adb remount
+       adb push "${topdir}/device-files/graphics.sh" /system/bin/
+       adb shell "mount -o remount,ro /system"
+       adb shell "sync"
+fi
-- 
2.27.0

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to