[Replicant] [vendor_replicant-scripts] [PATCH 2/2] display: renderer: setup.sh: sync with the modem setup.sh

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Fri Jun 19 15:45:59 UTC 2020


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 <GNUtoo at cyberdimension.org>
---
 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



More information about the Replicant mailing list