summaryrefslogtreecommitdiffstats
path: root/networking/modem/setup.sh
blob: ba7a75c16d642610c4ddbe94abfaf910d0e4f0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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/modem.sh" /system/bin/
	adb shell "mount -o remount,ro /system"
	adb shell "sync"
fi