forked from papampi/nvOC_by_fullzero_Community_Release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2unix
44 lines (34 loc) · 761 Bytes
/
2unix
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
37
38
39
40
41
42
43
44
#!/bin/bash
firstBOOT="NO"
if grep -q "convert" /home/m1/firstBOOT;
then
firstBOOT="YES"
fi
if [ $firstBOOT == "YES" ]
then
echo "First Boot"
echo "Read '/home/m1/SSD-USB Resize Guide' to resize your drive and add swap partition"
sleep 5
rm /home/m1/firstBOOT
sleep 1
touch /home/m1/firstBOOT
if [ -e /media/m1/12D3-A869/1bash ]
then
echo "Copying 1bash"
sudo cp '/media/m1/12D3-A869/1bash' '/home/m1/1bash'
echo "wait 15 seconds to minimize errors"
sudo dos2unix /home/m1/1bash
sleep 15
fi
fi
pkill -f 3main
sleep 3
update="YES"
if grep -q "v0019-2.0" /home/m1/1bash; then
update="NO"
echo "nvOC v0019-2.0 - Community Release"
fi
if [ $update == "YES" ] ; then
echo "Update Required"
fi
bash '/home/m1/3main'