[Replicant] [vendor_replicant-scripts] [PATCH v2][ 6/8] modem: setup.sh: Enable to run it from any directory
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Fri Jun 26 00:05:34 UTC 2020
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
networking/modem/setup.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/networking/modem/setup.sh b/networking/modem/setup.sh
index 693f4aa..0f4ce0b 100755
--- a/networking/modem/setup.sh
+++ b/networking/modem/setup.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+topdir=$(dirname $0)
adb root
sleep 3
-adb push ./device-files/modem.sh "/system/bin/"
+adb push "${topdir}/device-files/modem.sh" /system/bin/
--
2.27.0
More information about the Replicant
mailing list