summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-19 06:01:35 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-26 01:54:42 +0200
commit88ea7c052750b11b8a8dff8f8074cdee13c98424 (patch)
tree96d0cc16171bb2b6b0bb466e3834aa0c52e65175
parent3182ac6fd77c54983c5210073b317f30246df9d8 (diff)
downloadvendor_replicant-scripts-88ea7c052750b11b8a8dff8f8074cdee13c98424.tar.gz
vendor_replicant-scripts-88ea7c052750b11b8a8dff8f8074cdee13c98424.tar.bz2
vendor_replicant-scripts-88ea7c052750b11b8a8dff8f8074cdee13c98424.zip
modem: setup.sh: Enable to run it from any directory
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-xnetworking/modem/setup.sh3
1 files changed, 2 insertions, 1 deletions
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/