-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit
97 lines (67 loc) · 2.17 KB
/
init
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
#source.shell
if [ ! -d ${NVRAMCONF}]; then
clear
echo $sysinitprefix uh oh
echo $sysinitprefix We cannot find the nvram at boot time
echo $sysinitprefix Please Update to the latest bugfix version or check the filesystem
exit
fi
#Compensation for Busybox binaries not used at runtime thus Distro Customization are not Transfered correctly or at all
echo Compensating Busybox PATH BUG
echo Launching PATH Applier
sh /module/incontainerApply
echo Done
#for Various of daemons log files
mkdir /logs
#additional Parameter
#Extended Path
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/system/xbin:/system/bin:/bin/hw:$PATH #extendthepath for /module excutables
extendedpath=$(cat /module/extendedpath)
for a in $extendedpath ; do
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/system/xbin:/system/bin:/bin/hw:$PATH:$a
done
#export "LD_PRELOAD=/libdisableselinux.so /libandroid-shmem.so"
export sysinfodisp="[q7OS runtime]"
#-----------------------------------------Do not use function for command above---------------------------------------
. ${runtimetoolbox}/monolithicload0
#--------------------------------Main Execution--------------------------------
yellow
echo "${sysinfodisp} Initializing packages"
green
osSetup
clear
q7OSBooting # Shows the logo after install
yellow
echo "${sysinfodisp} Starting Core services"
green
servicePhase1 > /logs/Initboot.log 2>&1
yellow
echo "${sysinfodisp} Managing filesystem"
green
filesystemInit >> /logs/Initboot.log 2>&1
yellow
echo "${sysinfodisp} Porting proprietary driver "
green
proprietaryDriverPort >> /logs/Initboot.log 2>&1
yellow
echo "${sysinfodisp} Relaying dev layout to standard GNU/Linux Format"
green
devRelayout >> /logs/Initboot.log 2>&1
yellow
echo "${sysinfodisp} Starting Misclenaous Services"
green
servicePhase2 >> /logs/Initboot.log 2>&1
yellow
echo "${sysinfodisp} Starting defined features"
green
customFeaturesOEM >> /logs/Initboot.log 2>&1
TESTCHECK # Test check is a function to test whether this OS is in build testing mode or normal mode
yellow
echo "${sysinfodisp} Opening Session"
green
booted
red
echo "${sysinfodisp} Shutting down"
green
terminateInit >> /logs/Initboot.log 2>&1