Skip to content

Commit 2340e37

Browse files
author
gitovski
committed
update
1 parent 749bf8c commit 2340e37

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

first-boot.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ echo "Root Script Starting..."
7575
# Root the VM
7676
git clone https://gitlab.com/newbit/rootAVD.git
7777
pushd rootAVD
78-
sed -i 's/choice=1/choice=2/g' rootAVD.sh
79-
yes 2 | ./rootAVD.sh system-images/android-30/default/x86_64/ramdisk.img FAKEBOOTIMG
78+
echo "************SELECTIIIIIIIIING MAGIIIIISK*****************"
79+
sed -i '/read -t 10 choice/{n;s/choice=1/choice=2/;}' rootAVD.sh
80+
./rootAVD.sh system-images/android-30/default/x86_64/ramdisk.img FAKEBOOTIMG
81+
s
8082
cp /opt/android-sdk/system-images/android-30/default/x86_64/ramdisk.img /data/android.avd/ramdisk.img
8183
popd
8284
echo "Root Done"

0 commit comments

Comments
 (0)