diff options
Diffstat (limited to 'prepare-device.sh')
-rwxr-xr-x | prepare-device.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/prepare-device.sh b/prepare-device.sh index 4e4faca..b816dfe 100755 --- a/prepare-device.sh +++ b/prepare-device.sh @@ -1,4 +1,23 @@ #!/bin/bash echo "Preparing device for mode: $1" + +if [ $1 == 'mp' ] +then + # disable IKS + IPADDR=`cat IPADDR` + echo "Disable IKS for $IPADDR" + adb connect $IPADDR:5555 + adb -s $IPADDR:5555 shell "echo 0 > /sys/kernel/bL_switcher/active" +fi + +if [ $1 == 'iks' ] +then + # enable IKS + IPADDR=`cat IPADDR` + echo "Enable IKS for $IPADDR" + adb connect $IPADDR:5555 + adb -s $IPADDR:5555 shell "echo 1 > /sys/kernel/bL_switcher/active" +fi + exit 0 |