forked from pocopico/tinycore-redpill
-
Notifications
You must be signed in to change notification settings - Fork 37
/
menud.sh
executable file
·36 lines (30 loc) · 975 Bytes
/
menud.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
function gitdownload() {
git config --global http.sslVerify false
if [ -d /home/tc/redpill-load ]; then
echo "Loader sources already downloaded, pulling latest"
cd /home/tc/redpill-load
git pull
if [ $? -ne 0 ]; then
cd /home/tc
/home/tc/rploader.sh clean
git clone -b master "https://giteas.duckdns.org/PeterSuh-Q3/redpill-load.git"
fi
cd /home/tc
else
git clone -b master "https://giteas.duckdns.org/PeterSuh-Q3/redpill-load.git"
fi
}
while true; do
if [ $(ifconfig | grep -i "inet " | grep -v "127.0.0.1" | wc -l) -gt 0 ]; then
/home/tc/my.sh update
break
fi
sleep 1
echo "Waiting for internet activation in menu.sh !!!"
done
gitdownload
sed -i 's/master\/all-modules/develop\/all-modules/' /home/tc/redpill-load/bundled-exts.json
sed -i 's/git config/return;#it config/' /home/tc/my.sh
/home/tc/menu_m.sh
exit 0